mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
powerpc: fix fdt_fixup_liodn_tbl_fman()
Builiding with GCC 12.2 fails:
arch/powerpc/cpu/mpc85xx/liodn.c: In function 'fdt_fixup_liodn_tbl_fman':
arch/powerpc/cpu/mpc85xx/liodn.c:340:35: error: the comparison will
always evaluate as 'false' for the address of 'compat'
will never be NULL [-Werror=address]
340 | if (tbl[i].compat == NULL)
|
Remove the superfluous check.
Fixes: 97a8d010e0
("net/fman: Support both new and legacy FMan Compatibles")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
d2ad92927e
commit
f17fe71222
1 changed files with 0 additions and 3 deletions
|
@ -337,9 +337,6 @@ static void fdt_fixup_liodn_tbl_fman(void *blob,
|
|||
for (i = 0; i < sz; i++) {
|
||||
int off;
|
||||
|
||||
if (tbl[i].compat == NULL)
|
||||
continue;
|
||||
|
||||
/* Try the new compatible first.
|
||||
* If the node is missing, try the old.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue