[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdbfhbtUmmE9M3qLuM8LmPDYKvZL_znVnvGqGZwSB0=Nbw@mail.gmail.com>
Date: Mon, 28 Oct 2024 23:10:29 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, Bartosz Golaszewski <brgl@...ev.pl>
Subject: Re: [PATCH v1 1/1] gpio: Use traditional pattern when checking error codes
On Mon, Oct 28, 2024 at 2:44 PM Andy Shevchenko
<andriy.shevchenko@...ux.intel.com> wrote:
> Instead of 'if (ret == 0)' switch to "check for the error first" rule.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
This makes a lot of sense.
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists