]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: make usb_iso_packet_descriptor.status signed
authorPete Zaitcev <zaitcev@redhat.com>
Sun, 11 Feb 2007 21:56:13 +0000 (13:56 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Feb 2007 23:32:21 +0000 (15:32 -0800)
The status in usb_iso_packet_descriptor should be signed, for the benefit
of someone who casts to a long or makes other benign misstep (the principle
of least surprise).

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/usb.h

index b5c226a87ed87640252139a6dda2f701aa4636bc..a8e8d1ecebb17b4bbcd6e36c93d18947e78624b1 100644 (file)
@@ -935,7 +935,7 @@ struct usb_iso_packet_descriptor {
        unsigned int offset;
        unsigned int length;            /* expected length */
        unsigned int actual_length;
-       unsigned int status;
+       int status;
 };
 
 struct urb;