Re: [PATCH 2/2] hwmon: (adc128d818) simplify final return in probe

From: Guenter Roeck
Date: Mon May 06 2024 - 19:19:50 EST


On Mon, May 06, 2024 at 10:59:16AM -0500, David Lechner wrote:
> The final return in adc128d818_probe() can be simplified by using
> PTR_ERR_OR_ZERO rather than an if statement.
>
> Suggested-by: Guenter Roeck <linux@xxxxxxxxxxxx>
> Signed-off-by: David Lechner <dlechner@xxxxxxxxxxxx>

Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>

.. assuming the patch will be applied as part of the previous series.
Otherwise I'll apply it after that series is upstream.

Thanks,
Guenter