Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Matthias Kaehlcke and committed by
Greg Kroah-Hartman
1eba67a6 fa4c86a0

+1 -1
+1 -1
drivers/usb/host/uhci-q.c
··· 260 260 INIT_LIST_HEAD(&qh->node); 261 261 262 262 if (udev) { /* Normal QH */ 263 - qh->type = hep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; 263 + qh->type = usb_endpoint_type(&hep->desc); 264 264 if (qh->type != USB_ENDPOINT_XFER_ISOC) { 265 265 qh->dummy_td = uhci_alloc_td(uhci); 266 266 if (!qh->dummy_td) {