]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlx4: remove custom dev_addr clearing
authorJakub Kicinski <kuba@kernel.org>
Mon, 4 Oct 2021 19:14:45 +0000 (12:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2021 12:15:35 +0000 (13:15 +0100)
commite04ffd120f3c9818e56fc16f88d715508d7cd283
treea79af90b0d9572bc376c7e4e5ef63604dae493d5
parent1bb96a07f9a8f2fe9725f6689605e32b75d20508
mlx4: remove custom dev_addr clearing

mlx4_en_u64_to_mac() takes the dev->dev_addr pointer and writes
to it byte by byte. It also clears the two bytes _after_ ETH_ALEN
which seems unnecessary. dev->addr_len is set to ETH_ALEN just
before the call.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c