Re: [PATCH] ASoC: SOF: imx: Remove the use of dev_err_probe()
From: Daniel Baluta
Date: Wed Aug 20 2025 - 03:02:18 EST
On Tue, Aug 19, 2025 at 2:29 PM Xichao Zhao <zhao.xichao@xxxxxxxx> wrote:
>
> The dev_err_probe() doesn't do anything when error is '-ENOMEM'.
> Therefore, remove the useless call to dev_err_probe(), and just
> return the value instead.
>
> Signed-off-by: Xichao Zhao <zhao.xichao@xxxxxxxx>
NACK on this.
Quote from dev_err_probe documentation:
```
Using this helper in your probe function is totally fine even if @err
* is known to never be -EPROBE_DEFER.
* The benefit compared to a normal dev_err() is the standardized format
* of the error code, which is emitted symbolically (i.e. you get "EAGAIN"
* instead of "-35"), and having the error code returned allows more
* compact error paths.
```
Thanks,
Daniel.