diff options
author | 2014-11-17 15:31:59 +0100 | |
---|---|---|
committer | 2014-11-27 15:11:18 +0100 | |
commit | 86256d1fceff058d5afea6dfcc8a2eac18a71e95 (patch) | |
tree | dd17bc67c3fcdb02dceb710dafffaad6218c119d /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | gpio: mcp23s08: Add simple IRQ support for SPI devices (diff) | |
download | wireguard-linux-86256d1fceff058d5afea6dfcc8a2eac18a71e95.tar.xz wireguard-linux-86256d1fceff058d5afea6dfcc8a2eac18a71e95.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions