[PATCH v2] mfd: macsmc: Remove error prints for devm_add_action_or_reset()

Sven Peter sven at kernel.org
Wed Aug 6 11:49:48 PDT 2025


On 05.08.25 11:33, 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.
> 
> Signed-off-by: Waqar Hameed <waqar.hameed at axis.com>
> ---

Reviewed-by: Sven Peter <sven at kernel.org>


Thanks,

Sven




More information about the linux-arm-kernel mailing list