Re: [PATCH v1 1/1] gpiolib: Remove duplicative check in gpiod_find_and_request()

From: Linus Walleij
Date: Fri Mar 10 2023 - 04:43:41 EST


On Thu, Mar 9, 2023 at 7:56 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:

> The gpiod_find_by_fwnode() already checks for NULL and returns
> correct error code in case fwnode is invalid. Drop the respective
> check and assignment in the gpiod_find_and_request().
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij