Commit 5bcec545a6ca977ad74ee9fe0f2b335d348b5000
Committed by
Tom Rini
1 parent
290ac3bb1a
Exists in
v2017.01-smarct4x
and in
34 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
common/image-fit.c
... | ... | @@ -1464,10 +1464,10 @@ |
1464 | 1464 | |
1465 | 1465 | /* Print out all of the specified loadables */ |
1466 | 1466 | for (loadables_index = 0; |
1467 | - !fdt_get_string_index(fit, noffset, | |
1467 | + fdt_get_string_index(fit, noffset, | |
1468 | 1468 | FIT_LOADABLE_PROP, |
1469 | 1469 | loadables_index, |
1470 | - (const char **)&uname) > 0; | |
1470 | + (const char **)&uname) == 0; | |
1471 | 1471 | loadables_index++) |
1472 | 1472 | { |
1473 | 1473 | if (loadables_index == 0) { |