summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-08-20 11:45:43 +0200
committerTom Rini <trini@konsulko.com>2015-08-28 11:46:35 -0400
commit9734b97f76a942f449fdc9ff445a003aa812baa7 (patch)
treeedb082a39510c383469583d1f35165acea9adf0f /arch
parent79c884d7e449a63fa8f07b7495f8f9873355c48f (diff)
image: Fix loop condition to avoid warning
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions