
28 Aug
2015
28 Aug
'15
11:01 p.m.
On Thu, Aug 20, 2015 at 11:45:43AM +0200, Thierry Reding wrote:
From: Thierry Reding treding@nvidia.com
GCC 5.1 starts warning for comparisons such as !a > 0, assuming that the negation was meant to apply to the whole expression rather than just the left operand.
Indeed the comparison in the FIT loadable code is confusingly written, though it does end up doing the right thing. Rewrite the condition to be more explicit, that is, iterate over strings until they're exhausted.
Signed-off-by: Thierry Reding treding@nvidia.com Reviewed-by: Tom Rini trini@konsulko.com Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot/master, thanks!
--
Tom