[PATCH v2] ASoC: SOF: imx: Remove error print for devm_add_action_or_reset()
Daniel Baluta
daniel.baluta at gmail.com
Wed Aug 6 01:05:18 PDT 2025
On Tue, Aug 5, 2025 at 12:33 PM Waqar Hameed <waqar.hameed at axis.com> 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: Daniel Baluta <daniel.baluta at nxp.com>
More information about the linux-arm-kernel
mailing list