diff options
| author | Petros Koutoupis <[email protected]> | 2016-05-09 18:44:10 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2016-05-11 01:58:08 +0000 |
| commit | ff615f065a48137e48985c78d8b17ce14b22fa90 (patch) | |
| tree | 680e9f70f04a0ca68fc377717c232402abb989a8 /drivers/scsi/mpt3sas/mpi/mpi2_init.h | |
| parent | scsi_lib: Decode T10 vendor IDs (diff) | |
| download | kernel-ff615f065a48137e48985c78d8b17ce14b22fa90.tar.gz kernel-ff615f065a48137e48985c78d8b17ce14b22fa90.zip | |
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 <[email protected]>
Acked-by: Don Brace <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_init.h')
0 files changed, 0 insertions, 0 deletions
