]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
scsi: hisi_sas: check hisi_sas_lu_reset() error message
authorJohn Garry <john.garry@huawei.com>
Wed, 22 Mar 2017 17:25:37 +0000 (01:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 15:12:02 +0000 (11:12 -0400)
Unless we actually get some sort of failure in hisi_sas_lu_reset(),
don't print a message.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c

index 1391f2dd8102e7ff172f5f67ad3d1d2b320e54c4..dcceff9043b0e27d2bd788216c4df0da2b27249f 100644 (file)
@@ -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;
 }