]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB storage: fix sign bug in usb-storage datafab
authorOlaf Hering <olh@suse.de>
Mon, 2 Feb 2004 05:44:55 +0000 (21:44 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 2 Feb 2004 05:44:55 +0000 (21:44 -0800)
2.6 has no -fsigned-char anymore. there are 3 checks for info->lun < 0

drivers/usb/storage/datafab.h

index 2f03462b6ad342bc06d54457361830c8b22c9a56..c9343f6e4ac4ed19e16b6454d9dac48682096568 100644 (file)
@@ -29,7 +29,7 @@ extern int datafab_transport(Scsi_Cmnd *srb, struct us_data *us);
 struct datafab_info {
        unsigned long   sectors;        // total sector count
        unsigned long   ssize;          // sector size in bytes
-       char            lun;            // used for dual-slot readers
+       signed char     lun;            // used for dual-slot readers
        
        // the following aren't used yet
        unsigned char   sense_key;