From: Michal Simek Date: Tue, 24 Jan 2023 15:19:26 +0000 (+0100) Subject: xilinx: board: Use ETH_ALEN macro for mac address size X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=b86b135fc67e3b726d69c6f5fe92139e5a2d7a01;p=u-boot.git xilinx: board: Use ETH_ALEN macro for mac address size Use predefined macro for eth_mac legacy format. Signed-off-by: Michal Simek Link: https://lore.kernel.org/r/382d4bff370894164fad3c30ac0400b25142b544.1674573561.git.michal.simek@amd.com --- diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index 52a38147ed..6cdb0004f5 100644 --- a/board/xilinx/common/board.c +++ b/board/xilinx/common/board.c @@ -86,7 +86,7 @@ static struct xilinx_board_description *board_info; struct xilinx_legacy_format { char board_sn[18]; /* 0x0 */ char unused0[14]; /* 0x12 */ - char eth_mac[6]; /* 0x20 */ + char eth_mac[ETH_ALEN]; /* 0x20 */ char unused1[170]; /* 0x26 */ char board_name[11]; /* 0xd0 */ char unused2[5]; /* 0xdc */