diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2020-07-23 13:13:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-23 20:49:41 +0200 |
commit | 49b0aa1b6585705de4a08971602cd2726d9027f0 (patch) | |
tree | 6ff74325f4384fb75872327666f108eeb4463a5d /net/ncsi | |
parent | cxgb4: use eth_zero_addr() to clear mac address (diff) | |
download | linux-49b0aa1b6585705de4a08971602cd2726d9027f0.tar.xz linux-49b0aa1b6585705de4a08971602cd2726d9027f0.zip |
net/ncsi: use eth_zero_addr() to clear mac address
Use eth_zero_addr() to clear mac address insetad of memset().
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ncsi')
-rw-r--r-- | net/ncsi/ncsi-rsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ncsi/ncsi-rsp.c b/net/ncsi/ncsi-rsp.c index a94bb59793f0..5b1f4ec66dd9 100644 --- a/net/ncsi/ncsi-rsp.c +++ b/net/ncsi/ncsi-rsp.c @@ -471,7 +471,7 @@ static int ncsi_rsp_handler_sma(struct ncsi_request *nr) memcpy(&ncf->addrs[index], cmd->mac, ETH_ALEN); } else { clear_bit(cmd->index - 1, bitmap); - memset(&ncf->addrs[index], 0, ETH_ALEN); + eth_zero_addr(&ncf->addrs[index]); } spin_unlock_irqrestore(&nc->lock, flags); |