Skip to contentSkip to conversation

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

PATCH Applied Lu Wei 2 participants 2 messages May 16, 2022 – May 17, 2022

Subsystems (2)
lore
Share & tools
lore

Lu Wei

author
#0 lore raw

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

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

---
 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c +1 -1
index 66ef0090755e..84621b4cb15b 100644
@@ -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);
Signature · 1 line
2.17.1
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Paolo Abeni <[email protected]>:

Quoted 6 lines · On Mon, 16 May 2022 11:33:43 +0800 you wrote:

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

---
 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net-next] net/mlxbf_gige: use eth_zero_addr() to clear mac address

    https://git.kernel.org/netdev/net-next/c/bcdcf2c466d3

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html