Skip to content
Commit 872a9b81 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Michal Simek
Browse files

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: a03b5947 ("xilinx: board: Add support for additional card detection")
Signed-off-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Link: https://lore.kernel.org/r/20221008091317.52838-1-heinrich.schuchardt@canonical.com


Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent f60be62d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment