Skip to content
Commit 2efc6bfa authored by Saiyam Doshi's avatar Saiyam Doshi Committed by Linus Walleij
Browse files

gpio: remove explicit comparison with 0



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: default avatarSaiyam Doshi <saiyamdoshi.in@gmail.com>
Link: https://lore.kernel.org/r/20190907173910.GA9547@SD


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent aba30f6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment