Re: [PATCH] hpsa: Fix type ZBC conditional checks

2016-05-10 Thread Martin K. Petersen
> "Petros" == Petros Koutoupis writes: Petros> The device ID obtained from the inquiry can only be of a single Petros> type. The original code places a check for TYPE_ZBC right after Petros> the check for TYPE_DISK. Logically, if the first if statement Petros> sees a device of a TYPE_DISK an

[PATCH] hpsa: Fix type ZBC conditional checks

2016-05-09 Thread Petros Koutoupis
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 hi