summaryrefslogtreecommitdiff
path: root/common/image-fit.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-05-29 15:09:48 +0200
committerTom Rini <trini@konsulko.com>2015-06-06 09:30:20 -0400
commit5bcec545a6ca977ad74ee9fe0f2b335d348b5000 (patch)
treebf79b882cf298f744ddc90f1a2b85edb32da2213 /common/image-fit.c
parent290ac3bb1a1fbd85abcecfd8ff8cb837029d067a (diff)
downloadu-boot-5bcec545a6ca977ad74ee9fe0f2b335d348b5000.tar.gz
u-boot-5bcec545a6ca977ad74ee9fe0f2b335d348b5000.tar.bz2
u-boot-5bcec545a6ca977ad74ee9fe0f2b335d348b5000.zip
image-fit: Fix compiler warning in fit_conf_print()
This fixes the following compiler warning: In file included from tools/common/image-fit.c:1:0: ./tools/../common/image-fit.c: In function ‘fit_conf_print’: ./tools/../common/image-fit.c:1470:27: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] (const char **)&uname) > 0; Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r--common/image-fit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 4bd8feaf3b..28f7aa83ba 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1464,10 +1464,10 @@ void fit_conf_print(const void *fit, int noffset, const char *p)
/* Print out all of the specified loadables */
for (loadables_index = 0;
- !fdt_get_string_index(fit, noffset,
+ fdt_get_string_index(fit, noffset,
FIT_LOADABLE_PROP,
loadables_index,
- (const char **)&uname) > 0;
+ (const char **)&uname) == 0;
loadables_index++)
{
if (loadables_index == 0) {