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
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
2 matches
Mail list logo