Commit bcdcf2c4 authored by Lu Wei's avatar Lu Wei Committed by Paolo Abeni
Browse files

net/mlxbf_gige: use eth_zero_addr() to clear mac address



Use eth_zero_addr() to clear mac address instead of memset().

Signed-off-by: default avatarLu Wei <luwei32@huawei.com>
Link: https://lore.kernel.org/r/20220516033343.329178-1-luwei32@huawei.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 1588f5a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ static void mlxbf_gige_initial_mac(struct mlxbf_gige *priv)
	u8 mac[ETH_ALEN];
	u64 local_mac;

	memset(mac, 0, ETH_ALEN);
	eth_zero_addr(mac);
	mlxbf_gige_get_mac_rx_filter(priv, MLXBF_GIGE_LOCAL_MAC_FILTER_IDX,
				     &local_mac);
	u64_to_ether_addr(local_mac, mac);