From: Joe Perches Date: Tue, 10 May 2011 23:23:07 +0000 (-0700) Subject: gpio: Convert gpio_is_valid to return bool X-Git-Tag: v3.0-rc1~30^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3474cb3cc0140f9cf6ca56983f8180b4b4c5c36a;p=pandora-kernel.git gpio: Convert gpio_is_valid to return bool Make the code a bit more readable. Instead of casting an int to an unsigned then comparing to MAX_NR_GPIOS, add a >= 0 test and let the compiler optimizer do the conversion to unsigned. The generated code should be the same. Signed-off-by: Joe Perches Acked-by: Linus Walleij Signed-off-by: Grant Likely --- Reading git-diff-tree failed