From: Matthias Kaehlcke Date: Wed, 15 Apr 2009 20:28:28 +0000 (+0200) Subject: USB: UHCI queue: use usb_endpoint_type() X-Git-Tag: v2.6.31-rc1~304^2~109 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1eba67a60d6c95f7eae94930ec369f2837bb5b12;p=~emulex%2Finfiniband.git USB: UHCI queue: use usb_endpoint_type() use usb_endpoint_type() instead of fiddling manually with bmAttributes Signed-off-by: Matthias Kaehlcke Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/uhci-q.c b/drivers/usb/host/uhci-q.c index 3e5807d14ff..64e57bfe236 100644 --- a/drivers/usb/host/uhci-q.c +++ b/drivers/usb/host/uhci-q.c @@ -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) {