Re: [PATCH] iio: addac: ad74115: Add missing check for device_property_read_u32_array

From: Andy Shevchenko

Date: Wed Jan 28 2026 - 04:43:45 EST


On Wed, Jan 28, 2026 at 09:34:18AM +0000, Nuno Sá wrote:
> On Wed, 2026-01-28 at 12:30 +0800, Chen Ni wrote:
> > Add check for the return value of device_property_read_u32_array() and
> > return the error if it fails in order to catch the error.

...

> > - device_property_read_u32_array(dev, prop_name, vals, 2);
> > + ret = device_property_read_u32_array(dev, prop_name, vals, 2);
> > + if (ret)
> > + return dev_err_probe(dev, ret, "Failed to read %s prop\n",
> > +      prop_name);
>
> Thanks for the patch but this is intentional. Not a mandatory property.

No need for further actions. NAK to the change. We don't want to have a monster
with the custom error checking.

P.S. The author also must answer if this was found by some static analyser
tool. If so, the stream from this "tool" should be blocked for now.

--
With Best Regards,
Andy Shevchenko