diff options
-rw-r--r-- | drivers/usb/misc/ftdi-elan.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index 9b591b8b9369..0e8ee2dea881 100644 --- a/drivers/usb/misc/ftdi-elan.c +++ b/drivers/usb/misc/ftdi-elan.c | |||
@@ -2633,10 +2633,7 @@ static int ftdi_elan_probe(struct usb_interface *interface, | |||
2633 | for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) { | 2633 | for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) { |
2634 | endpoint = &iface_desc->endpoint[i].desc; | 2634 | endpoint = &iface_desc->endpoint[i].desc; |
2635 | if (!ftdi->bulk_in_endpointAddr && | 2635 | if (!ftdi->bulk_in_endpointAddr && |
2636 | ((endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK) | 2636 | usb_endpoint_is_bulk_in(endpoint)) { |
2637 | == USB_DIR_IN) && ((endpoint->bmAttributes & | ||
2638 | USB_ENDPOINT_XFERTYPE_MASK) == USB_ENDPOINT_XFER_BULK)) | ||
2639 | { | ||
2640 | buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); | 2637 | buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); |
2641 | ftdi->bulk_in_size = buffer_size; | 2638 | ftdi->bulk_in_size = buffer_size; |
2642 | ftdi->bulk_in_endpointAddr = endpoint->bEndpointAddress; | 2639 | ftdi->bulk_in_endpointAddr = endpoint->bEndpointAddress; |
@@ -2649,10 +2646,7 @@ static int ftdi_elan_probe(struct usb_interface *interface, | |||
2649 | } | 2646 | } |
2650 | } | 2647 | } |
2651 | if (!ftdi->bulk_out_endpointAddr && | 2648 | if (!ftdi->bulk_out_endpointAddr && |
2652 | ((endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK) | 2649 | usb_endpoint_is_bulk_out(endpoint)) { |
2653 | == USB_DIR_OUT) && ((endpoint->bmAttributes & | ||
2654 | USB_ENDPOINT_XFERTYPE_MASK) == USB_ENDPOINT_XFER_BULK)) | ||
2655 | { | ||
2656 | ftdi->bulk_out_endpointAddr = | 2650 | ftdi->bulk_out_endpointAddr = |
2657 | endpoint->bEndpointAddress; | 2651 | endpoint->bEndpointAddress; |
2658 | } | 2652 | } |