Re: [PATCH] gpio: check first for invalid gpio

2016-01-26 Thread Alexandre Courbot
On Fri, Jan 1, 2016 at 5:30 PM, Sudip Mukherjee wrote: > Even if an invalid gpio number is sent to gpio_to_desc() we try to find > it in the list before checking if it is invalid. We can check it first > so that it will save us from traversing the list incase of invalid gpio. The motivation for h

[PATCH] gpio: check first for invalid gpio

2016-01-01 Thread Sudip Mukherjee
Even if an invalid gpio number is sent to gpio_to_desc() we try to find it in the list before checking if it is invalid. We can check it first so that it will save us from traversing the list incase of invalid gpio. Signed-off-by: Sudip Mukherjee --- drivers/gpio/gpiolib.c | 8 +--- 1 file c