Re: [PATCH v1 1/1] gpio: Use traditional pattern when checking error codes

From: Linus Walleij
Date: Mon Oct 28 2024 - 18:10:51 EST


On Mon, Oct 28, 2024 at 2:44 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:

> Instead of 'if (ret == 0)' switch to "check for the error first" rule.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

This makes a lot of sense.
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij