|
@@ -1070,7 +1070,7 @@ static int eject_installer(struct usb_interface *intf)
|
|
|
|
|
|
/* Find bulk out endpoint */
|
|
/* Find bulk out endpoint */
|
|
endpoint = &iface_desc->endpoint[1].desc;
|
|
endpoint = &iface_desc->endpoint[1].desc;
|
|
- if ((endpoint->bEndpointAddress & USB_TYPE_MASK) == USB_DIR_OUT &&
|
|
|
|
|
|
+ if (usb_endpoint_dir_out(endpoint) &&
|
|
usb_endpoint_xfer_bulk(endpoint)) {
|
|
usb_endpoint_xfer_bulk(endpoint)) {
|
|
bulk_out_ep = endpoint->bEndpointAddress;
|
|
bulk_out_ep = endpoint->bEndpointAddress;
|
|
} else {
|
|
} else {
|