From: John Garry Date: Wed, 22 Mar 2017 17:25:37 +0000 (+0800) Subject: scsi: hisi_sas: check hisi_sas_lu_reset() error message X-Git-Tag: v4.12-rc1~99^2~120 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=14d3f397f6496e04a6b9876a44469fbfaea287f8;p=karo-tx-linux.git scsi: hisi_sas: check hisi_sas_lu_reset() error message Unless we actually get some sort of failure in hisi_sas_lu_reset(), don't print a message. Signed-off-by: John Garry Signed-off-by: Xiang Chen Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 1391f2dd8102..dcceff9043b0 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -1070,8 +1070,9 @@ static int hisi_sas_lu_reset(struct domain_device *device, u8 *lun) } } out: - dev_err(dev, "lu_reset: for device[%llx]:rc= %d\n", - sas_dev->device_id, rc); + if (rc != TMF_RESP_FUNC_COMPLETE) + dev_err(dev, "lu_reset: for device[%llx]:rc= %d\n", + sas_dev->device_id, rc); return rc; }