hpsa: Fix type ZBC conditional checks
authorPetros Koutoupis <petros@petroskoutoupis.com>
Mon, 9 May 2016 18:44:10 +0000 (13:44 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2016 01:58:08 +0000 (21:58 -0400)
commitff615f065a48137e48985c78d8b17ce14b22fa90
tree680e9f70f04a0ca68fc377717c232402abb989a8
parentd230823a1c4c3e97afd4c934b86b3975d5e20249
hpsa: Fix type ZBC conditional checks

The device ID obtained from the inquiry can only be of a single type.
The original code places a check for TYPE_ZBC right after the check for
TYPE_DISK. Logically, if the first if statement sees a device of a
TYPE_DISK and moves on to the second statement checking if not TYPE_ZBC,
it will always hit the continue.

[mkp: Applied by hand]

Signed-off-by: Petros Koutoupis <petros@petroskoutoupis.com>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c