mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
USB: UHCI queue: use usb_endpoint_type()
use usb_endpoint_type() instead of fiddling manually with bmAttributes Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
fa4c86a0dd
commit
1eba67a60d
@ -260,7 +260,7 @@ static struct uhci_qh *uhci_alloc_qh(struct uhci_hcd *uhci,
|
||||
INIT_LIST_HEAD(&qh->node);
|
||||
|
||||
if (udev) { /* Normal QH */
|
||||
qh->type = hep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK;
|
||||
qh->type = usb_endpoint_type(&hep->desc);
|
||||
if (qh->type != USB_ENDPOINT_XFER_ISOC) {
|
||||
qh->dummy_td = uhci_alloc_td(uhci);
|
||||
if (!qh->dummy_td) {
|
||||
|
Loading…
Reference in New Issue
Block a user