Re: [PATCH] gpio: remove explicit comparison with 0

From: Linus Walleij
Date: Wed Sep 11 2019 - 19:06:24 EST


On Sat, Sep 7, 2019 at 6:39 PM Saiyam Doshi <saiyamdoshi.in@xxxxxxxxx> wrote:

> No need to compare return value with 0. In case of non-zero
> return value, the if condition will be true.
>
> This makes intent a bit more clear to the reader.
> "if (x) then", compared to "if (x is not zero) then".
>
> Signed-off-by: Saiyam Doshi <saiyamdoshi.in@xxxxxxxxx>

Patch applied.

Yours,
Linus Walleij