aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/class/usblp.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c
index 292919d260a0..9b05a359b9f7 100644
--- a/drivers/usb/class/usblp.c
+++ b/drivers/usb/class/usblp.c
@@ -1021,18 +1021,13 @@ static int usblp_select_alts(struct usblp *usblp)
1021 for (e = 0; e < ifd->desc.bNumEndpoints; e++) { 1021 for (e = 0; e < ifd->desc.bNumEndpoints; e++) {
1022 epd = &ifd->endpoint[e].desc; 1022 epd = &ifd->endpoint[e].desc;
1023 1023
1024 if ((epd->bmAttributes&USB_ENDPOINT_XFERTYPE_MASK)!= 1024 if (usb_endpoint_is_bulk_out(epd))
1025 USB_ENDPOINT_XFER_BULK)
1026 continue;
1027
1028 if (!(epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK)) {
1029 if (!epwrite) 1025 if (!epwrite)
1030 epwrite = epd; 1026 epwrite = epd;
1031 1027
1032 } else { 1028 if (usb_endpoint_is_bulk_in(epd))
1033 if (!epread) 1029 if (!epread)
1034 epread = epd; 1030 epread = epd;
1035 }
1036 } 1031 }
1037 1032
1038 /* Ignore buggy hardware without the right endpoints. */ 1033 /* Ignore buggy hardware without the right endpoints. */