diff options
author | Joe Perches <joe@perches.com> | 2015-03-03 06:54:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-04 01:01:36 +0300 |
commit | c7bf716940c6a8ed39b444bfb0b97c2939ac312b (patch) | |
tree | 4f21527a5cfb43f724b5dd2ea65e530d9ec64ea3 /drivers/net/ethernet/smsc | |
parent | e8ab38cfcb6eac7f4e7e3b8e787a9d4bea54c2cb (diff) | |
download | linux-c7bf716940c6a8ed39b444bfb0b97c2939ac312b.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/smsc')
-rw-r--r-- | drivers/net/ethernet/smsc/smsc911x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c index 2965c6ae7d6e..41047c9143d0 100644 --- a/drivers/net/ethernet/smsc/smsc911x.c +++ b/drivers/net/ethernet/smsc/smsc911x.c @@ -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++) |