]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: patch to make USB_ZERO_PACKET work in ohci-hcd.c
authorMartin Diehl <lists@mdiehl.de>
Thu, 18 Jul 2002 08:53:30 +0000 (01:53 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 18 Jul 2002 08:53:30 +0000 (01:53 -0700)
drivers/usb/host/ohci-hcd.c

index a56ae64e60cccca17f94dd8db41a50ca2c4f6235..2ee09b0a3bcd63db431f137dbb1a135b6313e583 100644 (file)
@@ -167,7 +167,7 @@ static int ohci_urb_enqueue (
                        else if ((urb->transfer_flags & USB_ZERO_PACKET) != 0
                                && (urb->transfer_buffer_length
                                        % usb_maxpacket (urb->dev, pipe,
-                                               usb_pipeout (pipe))) != 0)
+                                               usb_pipeout (pipe))) == 0)
                                size++;
                        break;
                case PIPE_ISOCHRONOUS: /* number of packets from URB */