
21 Aug
2015
21 Aug
'15
7:53 p.m.
On 20 August 2015 at 03:45, Thierry Reding thierry.reding@gmail.com 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
common/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org