Re: [PATCH v2 1/4] driver core: Ignore 0 in dev_err_probe()

From: Greg Kroah-Hartman
Date: Sat Aug 24 2024 - 01:19:09 EST


On Thu, Aug 22, 2024 at 04:05:38PM +0300, Andy Shevchenko wrote:
> In the similar way, ignore 0 error code (AKA "success") in
> dev_err_probe(). This helps to simplify a code such as
>
> if (ret < 0)
> return dev_err_probe(int3472->dev, ret, err_msg);
>
> return ret;
>
> to
>
> return dev_err_probe(int3472->dev, ret, err_msg);
>
> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>