Re: [PATCH 3/7] iio: chemical: Remove dev_err_probe() if error is -ENOMEM

From: Gustavo Silva
Date: Sat Aug 23 2025 - 13:27:32 EST


On Thu, Aug 21, 2025 at 04:06:47PM +0800, Xichao Zhao 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>
> ---
> drivers/iio/chemical/ens160_core.c | 3 +--
> drivers/iio/chemical/scd30_core.c | 2 +-
> 2 files changed, 2 insertions(+), 3 deletions(-)
For ens160:
Reviewed-by: Gustavo Silva <gustavograzs@xxxxxxxxx>