Re: [PATCH] regulator: lm363x: Check return value of gpiod_get_index_optional

From: Linus Walleij
Date: Fri Feb 08 2019 - 09:49:23 EST


On Fri, Feb 8, 2019 at 3:12 PM Axel Lin <axel.lin@xxxxxxxxxx> wrote:

> gpiod_get_index_optional can return ERR_PTR, add IS_ERR checking for it.
> While at it, also remove a redundant NULL test for gpiod in error path.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>

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

Yours,
Linus Walleij