]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
hpsa: change devtype to unsigned
authorDon Brace <don.brace@pmcs.com>
Fri, 6 May 2016 19:03:55 +0000 (12:03 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 22 May 2016 21:49:03 +0000 (14:49 -0700)
This member is used in calls to scsi_device_type.
It should be unsigned since the kernel checks for upper bounds
and it should never be negative.

Suggested-by: Tomas Henzl <thenzl@redhat.com>
Suggested-by: Hannes Reinecke <hare@suse.de>
Suggested-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Orabug: 23064595
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/scsi/hpsa.h

index 27debb363529ec88cbac6f364a3538b64d32b7a7..d6c4ebf91547209b720c013c5760e7e99e650342 100644 (file)
@@ -34,7 +34,7 @@ struct access_method {
 };
 
 struct hpsa_scsi_dev_t {
-       int devtype;
+       unsigned int devtype;
        int bus, target, lun;           /* as presented to the OS */
        unsigned char scsi3addr[8];     /* as presented to the HW */
 #define RAID_CTLR_LUNID "\0\0\0\0\0\0\0\0"