Commit 7ad9c26f authored by Miaohe Lin's avatar Miaohe Lin Committed by David S. Miller

net: qede: use eth_zero_addr() to clear mac address

Use eth_zero_addr() to clear mac address instead of memset().
Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 29b3705f
...@@ -2674,8 +2674,8 @@ static void qede_get_generic_tlv_data(void *dev, struct qed_generic_tlvs *data) ...@@ -2674,8 +2674,8 @@ static void qede_get_generic_tlv_data(void *dev, struct qed_generic_tlvs *data)
data->feat_flags |= QED_TLV_LSO; data->feat_flags |= QED_TLV_LSO;
ether_addr_copy(data->mac[0], edev->ndev->dev_addr); ether_addr_copy(data->mac[0], edev->ndev->dev_addr);
memset(data->mac[1], 0, ETH_ALEN); eth_zero_addr(data->mac[1]);
memset(data->mac[2], 0, ETH_ALEN); eth_zero_addr(data->mac[2]);
/* Copy the first two UC macs */ /* Copy the first two UC macs */
netif_addr_lock_bh(edev->ndev); netif_addr_lock_bh(edev->ndev);
i = 1; i = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment