scsi: hpsa: Ignore errors for unsupported LV_DEVICE_ID VPD page
authorHannes Reinecke <hare@suse.de>
Tue, 15 Aug 2017 06:58:06 +0000 (08:58 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:28:56 +0000 (22:28 -0400)
Legacy boards might not support the LV_DEVICE_ID VPD page, so
we shouldn't print out an error message here.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c

index 0b0b6dc..b34ec42 100644 (file)
@@ -3827,7 +3827,7 @@ static int hpsa_update_device_info(struct ctlr_info *h,
        memset(this_device->device_id, 0,
                sizeof(this_device->device_id));
        if (hpsa_get_device_id(h, scsi3addr, this_device->device_id, 8,
-               sizeof(this_device->device_id)))
+               sizeof(this_device->device_id) < 0))
                dev_err(&h->pdev->dev,
                        "hpsa%d: %s: can't get device id for host %d:C0:T%d:L%d\t%s\t%.16s\n",
                        h->ctlr, __func__,