diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/ub.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index 2098eff91e14..746a118a9b52 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
@@ -2132,10 +2132,13 @@ static int ub_get_pipes(struct ub_dev *sc, struct usb_device *dev, | |||
2132 | if ((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) | 2132 | if ((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) |
2133 | == USB_ENDPOINT_XFER_BULK) { | 2133 | == USB_ENDPOINT_XFER_BULK) { |
2134 | /* BULK in or out? */ | 2134 | /* BULK in or out? */ |
2135 | if (ep->bEndpointAddress & USB_DIR_IN) | 2135 | if (ep->bEndpointAddress & USB_DIR_IN) { |
2136 | ep_in = ep; | 2136 | if (ep_in == NULL) |
2137 | else | 2137 | ep_in = ep; |
2138 | ep_out = ep; | 2138 | } else { |
2139 | if (ep_out == NULL) | ||
2140 | ep_out = ep; | ||
2141 | } | ||
2139 | } | 2142 | } |
2140 | } | 2143 | } |
2141 | 2144 | ||