]> git.baikalelectronics.ru Git - uboot.git/commit
xilinx: common: fix board_late_init_xilinx()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 8 Oct 2022 09:13:17 +0000 (11:13 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 10 Oct 2022 10:28:08 +0000 (12:28 +0200)
commit5fe6dbafb17c1406c20c0e2295a83126bfaae534
tree975003a4833fd4c229efa18f53ff34441aafbed4
parent66d16ba874a5fef13c30806f74b2707f034a7a3b
xilinx: common: fix board_late_init_xilinx()

Compiling with GCC-12 leads to an error:

    +board/xilinx/common/board.c:479:37: error: the comparison will always
     evaluate as 'true' for the address of 'mac_addr' will never be NULL
     [-Werror=address]
    +  479 |                                 if (!desc->mac_addr[i])
    +      |                                     ^

Remove the redundant check.

Fixes: c38f8245711b ("xilinx: board: Add support for additional card detection")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Link: https://lore.kernel.org/r/20221008091317.52838-1-heinrich.schuchardt@canonical.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
board/xilinx/common/board.c