commit | 86256d1fceff058d5afea6dfcc8a2eac18a71e95 | [log] [tgz] |
---|---|---|
author | Geert Uytterhoeven <geert+renesas@glider.be> | Mon Nov 17 15:31:59 2014 +0100 |
committer | Linus Walleij <linus.walleij@linaro.org> | Thu Nov 27 15:11:18 2014 +0100 |
tree | dd17bc67c3fcdb02dceb710dafffaad6218c119d | |
parent | a231b88cfc3df120d3882c0be9499970af87f305 [diff] |
gpio: Check if base is positive before calling gpio_is_valid() 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>