Re: [PATCH v2] scsi: ufs: core: Remove error print for devm_add_action_or_reset()

From: Martin K. Petersen
Date: Tue Aug 12 2025 - 22:27:18 EST


On Tue, 05 Aug 2025 11:33:36 +0200, Waqar Hameed wrote:

> 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.
>
>
> [...]

Applied to 6.17/scsi-fixes, thanks!

[1/1] scsi: ufs: core: Remove error print for devm_add_action_or_reset()
https://git.kernel.org/mkp/scsi/c/72fc388d8bc0

--
Martin K. Petersen Oracle Linux Engineering