projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccbfe5a
)
scsi: hisi_sas: check hisi_sas_lu_reset() error message
author
John Garry
<
[email protected]
>
Wed, 22 Mar 2017 17:25:37 +0000
(
01:25
+0800)
committer
Martin K. Petersen
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Xiang Chen <
[email protected]
>
Signed-off-by: Martin K. Petersen <
[email protected]
>
drivers/scsi/hisi_sas/hisi_sas_main.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/hisi_sas/hisi_sas_main.c
b/drivers/scsi/hisi_sas/hisi_sas_main.c
index 1391f2dd8102e7ff172f5f67ad3d1d2b320e54c4..dcceff9043b0e27d2bd788216c4df0da2b27249f 100644
(file)
--- 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;
}