scsi: hpsa: Fix configured_logical_drive_count·check
authorChristos Gkekas <chris.gekas@gmail.com>
Mon, 16 Oct 2017 19:28:02 +0000 (20:28 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Oct 2017 03:14:31 +0000 (23:14 -0400)
commitc99dfd20f295b2b8c46da5185c0889493ba1f291
treecb9c0dbb02e24f28d9171363e84455436a1f4b16
parent1010f21ecf8ac43be676d498742de18fa6c20987
scsi: hpsa: Fix configured_logical_drive_count·check

Check whether configured_logical_drive_count is less than 255. Previous
check was always evaluating to true as this variable is defined as u8.

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
Acked-by: Don Brace <don.brace@microsemi.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c