Commit 72fc388d authored by Waqar Hameed's avatar Waqar Hameed Committed by Martin K. Petersen
Browse files

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: default avatarWaqar Hameed <waqar.hameed@axis.com>
Link: https://lore.kernel.org/r/pndtt2mkt8v.a.out@axis.com


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 7ec2bd6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment