]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] uhci-hcd misc
authorDavid Brownell <david-b@pacbell.net>
Fri, 7 Jun 2002 03:39:44 +0000 (20:39 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 7 Jun 2002 03:39:44 +0000 (20:39 -0700)
This has two minor tweaks to the uhci-hcd driver:

- removes some duplicated code (HCD framework does that test)
- corrects a FIXME comment (no issue)

drivers/usb/host/uhci-hcd.c
drivers/usb/host/uhci-hub.c

index 127e93068f9337478d13f04604ba6937ed98743c..5efc85cf5e2a995007bc530248f330cba4edd887 100644 (file)
@@ -1502,10 +1502,6 @@ static int uhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, int mem_flags)
                break;
        case PIPE_ISOCHRONOUS:
                if (urb->bandwidth == 0) {      /* not yet checked/allocated */
-                       if (urb->number_of_packets <= 0) {
-                               ret = -EINVAL;
-                               break;
-                       }
                        bustime = usb_check_bandwidth(urb->dev, urb);
                        if (bustime < 0) {
                                ret = bustime;
index 94f01e3d34b60b4e3c39597004508a7a8de28cdc..559b81586c076d450c4c591aae0e6a96698893de 100644 (file)
@@ -52,7 +52,7 @@ static int uhci_hub_status_data(struct usb_hcd *hcd, char *buf)
        outw(status, io_addr + USBPORTSC1 + 2 * (wIndex-1))
 
 
-// FIXME: Shouldn't this return the length of the data too?
+/* size of returned buffer is part of USB spec */
 static int uhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
                        u16 wIndex, char *buf, u16 wLength)
 {