diff options
-rw-r--r-- | drivers/net/usb/hso.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_usb.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 198ce3cf378a..9f7896a25f1b 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -2831,7 +2831,7 @@ static struct usb_endpoint_descriptor *hso_get_ep(struct usb_interface *intf, | |||
2831 | for (i = 0; i < iface->desc.bNumEndpoints; i++) { | 2831 | for (i = 0; i < iface->desc.bNumEndpoints; i++) { |
2832 | endp = &iface->endpoint[i].desc; | 2832 | endp = &iface->endpoint[i].desc; |
2833 | if (((endp->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == dir) && | 2833 | if (((endp->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == dir) && |
2834 | ((endp->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == type)) | 2834 | (usb_endpoint_type(endp) == type)) |
2835 | return endp; | 2835 | return endp; |
2836 | } | 2836 | } |
2837 | 2837 | ||
diff --git a/drivers/net/wireless/zd1211rw/zd_usb.c b/drivers/net/wireless/zd1211rw/zd_usb.c index 04c139666965..b5db57d2fcf5 100644 --- a/drivers/net/wireless/zd1211rw/zd_usb.c +++ b/drivers/net/wireless/zd1211rw/zd_usb.c | |||
@@ -1065,8 +1065,7 @@ static int eject_installer(struct usb_interface *intf) | |||
1065 | /* Find bulk out endpoint */ | 1065 | /* Find bulk out endpoint */ |
1066 | endpoint = &iface_desc->endpoint[1].desc; | 1066 | endpoint = &iface_desc->endpoint[1].desc; |
1067 | if ((endpoint->bEndpointAddress & USB_TYPE_MASK) == USB_DIR_OUT && | 1067 | if ((endpoint->bEndpointAddress & USB_TYPE_MASK) == USB_DIR_OUT && |
1068 | (endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == | 1068 | usb_endpoint_xfer_bulk(endpoint)) { |
1069 | USB_ENDPOINT_XFER_BULK) { | ||
1070 | bulk_out_ep = endpoint->bEndpointAddress; | 1069 | bulk_out_ep = endpoint->bEndpointAddress; |
1071 | } else { | 1070 | } else { |
1072 | dev_err(&udev->dev, | 1071 | dev_err(&udev->dev, |