mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 15:13:52 +00:00
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 <john.garry@huawei.com> Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
ccbfe5a05a
commit
14d3f397f6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user