From: Hannes Reinecke Date: Tue, 15 Aug 2017 06:58:06 +0000 (+0200) Subject: scsi: hpsa: Ignore errors for unsupported LV_DEVICE_ID VPD page X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=65e8697ee6f54e802dcebf546f02db9adec05760;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git scsi: hpsa: Ignore errors for unsupported LV_DEVICE_ID VPD page 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 Reviewed-by: Christoph Hellwig Acked-by: Don Brace Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 0b0b6dc0fcd4..b34ec4238b95 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -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__,