[PATCH 2/7] iio: adc: Remove dev_err_probe() if error is -ENOMEM
Martin Blumenstingl
martin.blumenstingl at googlemail.com
Thu Aug 21 13:31:51 PDT 2025
On Thu, Aug 21, 2025 at 10:07 AM Xichao Zhao <zhao.xichao at vivo.com> 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 at vivo.com>
> ---
> drivers/iio/adc/hx711.c | 2 +-
> drivers/iio/adc/imx93_adc.c | 3 +--
> drivers/iio/adc/mcp3564.c | 2 +-
> drivers/iio/adc/meson_saradc.c | 2 +-
For meson_saradc:
Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
More information about the linux-amlogic
mailing list