Searched hist:"758979101 d161704dc9c1e42db98a728724f59d0" (Results 1 – 1 of 1) sorted by relevance
/openbmc/u-boot/drivers/gpio/ |
H A D | gpio-uclass.c | diff 758979101d161704dc9c1e42db98a728724f59d0 Wed May 10 14:20:15 CDT 2017 Tom Rini <trini@konsulko.com> 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>
|