scsi: hpsa: Check for vpd support before sending
authorScott Teel <scott.teel@microsemi.com>
Fri, 9 Sep 2016 21:30:29 +0000 (16:30 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Sep 2016 18:19:31 +0000 (14:19 -0400)
commit8383278d28b9bc598225f163b6644b8b09f2733d
tree92ff613238aec870fad16d7c5922f5ebd5530042
parentd49c2077c03d70a59e3063c7d33f00172491ae31
scsi: hpsa: Check for vpd support before sending

Before using vendor-specific VPD pages for getting raid_level and
device_id, check for page support.  If page isn't supported, don't try
to use it.  Also, pay attention to return status on hpsa_get_device_id.

[mkp: fix boolean return warnings reported by kbuild test robot]

Reviewed-by: Scott Benesh <scott.benest@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c
drivers/scsi/hpsa_cmd.h