commit | 26fd968114f34de58948af8d310ce8040ec360e2 | [log] [tgz] |
---|---|---|
author | Tom Rini <trini@konsulko.com> | Wed May 10 15:20:15 2017 -0400 |
committer | Tom Rini <trini@konsulko.com> | Fri May 12 08:37:39 2017 -0400 |
tree | 5a4b0bc1593df007d5444e7b5d54955af1b462e4 | |
parent | a587336d7ece5c4dab998d6335b10df990f3817a [diff] |
gpio-uclass.c: Fix comparison of unsigned expression warning 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@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>