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
@@ -843,7 +843,7 @@ static int smsc911x_phy_loopbacktest(struct net_device *dev)
|
||||
unsigned long flags;
|
||||
|
||||
/* Initialise tx packet using broadcast destination address */
|
||||
memset(pdata->loopback_tx_pkt, 0xff, ETH_ALEN);
|
||||
eth_broadcast_addr(pdata->loopback_tx_pkt);
|
||||
|
||||
/* Use incrementing source address */
|
||||
for (i = 6; i < 12; i++)
|
||||
|
Reference in New Issue
Block a user