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

From: Jonathan Cameron
Date: Mon Aug 25 2025 - 04:42:54 EST


On Sat, 23 Aug 2025 14:27:55 -0300
Gustavo Silva <gustavograzs@xxxxxxxxx> wrote:

> 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>

Please use
Reviewed-by: Gustavo Silva <gustavograzs@xxxxxxxxx> # for ens160

for commented tags. Then tooling should pick them up correctly
without me needing to hand edit.

Thanks,

Jonathan