aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Brace <[email protected]>2015-11-04 15:50:19 -0600
committerMartin K. Petersen <[email protected]>2015-11-09 12:34:19 -0500
commit3ad7de6b7d031165e8b2c0775986128de17c5a63 (patch)
treea6a36abe0ce7f463db4446b6c84fbd130bab46bb
parentb48d9804281957ea35340076c2492c924ceb3ef0 (diff)
hpsa: change devtype to unsigned
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 <[email protected]> Suggested-by: Hannes Reinecke <[email protected]> Suggested-by: Matthew R. Ochs <[email protected]> Signed-off-by: Don Brace <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--drivers/scsi/hpsa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
index 27debb363529..d6c4ebf91547 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -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"