[U-Boot] [U-Boot, 5/8] gpio-uclass.c: Fix comparison of unsigned expression warning

Tom Rini trini at konsulko.com
Fri May 12 17:24:07 UTC 2017


On Wed, May 10, 2017 at 03:20:15PM -0400, Tom Rini wrote:

> We declare that gpio_base (which is the base for counting gpios, not an
> address) is unsigned.  Therefore the comparison with >= 0 is always
> true.  As the desire is to allow for this base number to be 0, we can
> just drop this check.  Reported by clang-3.8.
> 
> Cc: Simon Glass <sjg at chromium.org>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170512/a2e5629c/attachment.sig>


More information about the U-Boot mailing list