net/mlxbf_gige: use eth_zero_addr() to clear mac address
Subsystems (2)
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().
Signed-off-by Lu Wei <[email protected]>
--- 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
@@ -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
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 ofmemset().Signed-off-by Lu Wei <[email protected]>--- 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