projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29b3705
)
net: qede: use eth_zero_addr() to clear mac address
author
Miaohe Lin
<linmiaohe@huawei.com>
Sat, 1 Aug 2020 09:13:54 +0000
(17:13 +0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 3 Aug 2020 22:38:31 +0000
(15:38 -0700)
Use eth_zero_addr() to clear mac address instead of memset().
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qlogic/qede/qede_main.c
b/drivers/net/ethernet/qlogic/qede/qede_main.c
index 4250c17940c0e5b271508f9531e9ce67cfe10d6e..140a392a81bbd6aeb1564d027bc27d79ad914834 100644
(file)
--- a/
drivers/net/ethernet/qlogic/qede/qede_main.c
+++ b/
drivers/net/ethernet/qlogic/qede/qede_main.c
@@
-2674,8
+2674,8
@@
static void qede_get_generic_tlv_data(void *dev, struct qed_generic_tlvs *data)
data->feat_flags |= QED_TLV_LSO;
ether_addr_copy(data->mac[0], edev->ndev->dev_addr);
-
memset(data->mac[1], 0, ETH_ALEN
);
-
memset(data->mac[2], 0, ETH_ALEN
);
+
eth_zero_addr(data->mac[1]
);
+
eth_zero_addr(data->mac[2]
);
/* Copy the first two UC macs */
netif_addr_lock_bh(edev->ndev);
i = 1;