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

From: Alexandre Courbot
Date: Mon Nov 17 2014 - 22:07:22 EST


On Mon, Nov 17, 2014 at 11:31 PM, Geert Uytterhoeven
<geert+renesas@xxxxxxxxx> 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 <acourbot@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/