Re: [PATCH] gpio: Check if base is positive before calling gpio_is_valid()

2014-11-17 Thread Alexandre Courbot
On Mon, Nov 17, 2014 at 11:31 PM, Geert Uytterhoeven wrote: > 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. Sure. Reviewed-by: Alexandre Courbot --

[PATCH] gpio: Check if base is positive before calling gpio_is_valid()

2014-11-17 Thread Geert Uytterhoeven
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 --- drivers/gpio/gpiolib.c | 4 ++-- 1 file changed, 2 insertions(+), 2