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-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html