From: Don Brace Date: Wed, 4 Nov 2015 21:50:19 +0000 (-0600) Subject: hpsa: change devtype to unsigned X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ad7de6b7d031165e8b2c0775986128de17c5a63;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 --- 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"