mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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>
This commit is contained in:
parent
290ac3bb1a
commit
5bcec545a6
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue