Commit 72fc388
scsi: ufs: core: Remove error print for devm_add_action_or_reset()
When devm_add_action_or_reset() fails, it is due to a failed memory
allocation and will thus return -ENOMEM. dev_err_probe() doesn't do
anything when error is -ENOMEM. Therefore, remove the useless call to
dev_err_probe() when devm_add_action_or_reset() fails, and just return
the value instead.
Signed-off-by: Waqar Hameed <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>1 parent 7ec2bd6 commit 72fc388
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10515 | 10515 | | |
10516 | 10516 | | |
10517 | 10517 | | |
10518 | | - | |
10519 | | - | |
| 10518 | + | |
10520 | 10519 | | |
10521 | 10520 | | |
10522 | 10521 | | |
| |||
0 commit comments