From: Don Brace Date: Fri, 6 May 2016 19:03:55 +0000 (-0700) Subject: hpsa: change devtype to unsigned X-Git-Tag: v4.1.12-92~161^2~43 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0a8ae97e28809b232f550b2e61a020006e77730f;p=users%2Fjedix%2Flinux-maple.git 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 Suggested-by: Hannes Reinecke Suggested-by: Matthew R. Ochs Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen Orabug: 23064595 Signed-off-by: Manjunath Govindashetty --- 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"