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

2019-09-11 Thread Linus Walleij
On Sat, Sep 7, 2019 at 6:39 PM Saiyam Doshi 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 D

[PATCH] gpio: remove explicit comparison with 0

2019-09-07 Thread Saiyam Doshi
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 --- drivers/gpio/gpiolib.c | 2 +- 1 file changed, 1 inser