ethernet: Use eth_<foo>_addr instead of memset
Use the built-in function instead of memset. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e8ab38cfcb
commit
c7bf716940
@@ -460,7 +460,7 @@ static int ql_set_mac_addr(struct ql_adapter *qdev, int set)
|
||||
netif_printk(qdev, ifup, KERN_DEBUG, qdev->ndev,
|
||||
"Set Mac addr %pM\n", addr);
|
||||
} else {
|
||||
memset(zero_mac_addr, 0, ETH_ALEN);
|
||||
eth_zero_addr(zero_mac_addr);
|
||||
addr = &zero_mac_addr[0];
|
||||
netif_printk(qdev, ifup, KERN_DEBUG, qdev->ndev,
|
||||
"Clearing MAC address\n");
|
||||
|
Reference in New Issue
Block a user