[PATCH v2 1/3] xilinx: board: Use ETH_ALEN macro for mac address size

Michal Simek michal.simek at amd.com
Tue Jan 24 16:19:26 CET 2023


Use predefined macro for eth_mac legacy format.

Signed-off-by: Michal Simek <michal.simek at amd.com>
---

(no changes since v1)

 board/xilinx/common/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 823d703ea93c..6fc41e978669 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -85,7 +85,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 */
-- 
2.36.1



More information about the U-Boot mailing list