git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a231b88
)
gpio: Check if base is positive before calling gpio_is_valid()
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Mon, 17 Nov 2014 14:31:59 +0000
(15:31 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 27 Nov 2014 14:11:18 +0000
(15:11 +0100)
It doesn't make much sense to make some (possible expensive) calls to
gpio_is_valid() first, and to ignore the result if the base number is
negative. Check for a positive base number first.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
patch
|
blob
|
history
diff --cc
drivers/gpio/gpiolib.c
Simple merge