diff options
| author | Heinrich Schuchardt <[email protected]> | 2022-10-08 11:13:17 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2022-10-10 12:28:08 +0200 |
| commit | 872a9b81ee32336668f81d8221dfce41508584e4 (patch) | |
| tree | 975003a4833fd4c229efa18f53ff34441aafbed4 /scripts/kernel-doc | |
| parent | f60be62d771c9a9d0b57576c0ef5fb832d8d40ba (diff) | |
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: a03b594738f8 ("xilinx: board: Add support for additional card detection")
Signed-off-by: Heinrich Schuchardt <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'scripts/kernel-doc')
0 files changed, 0 insertions, 0 deletions
