summaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_eth.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-03 04:54:59 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-03 23:01:38 +0100
commit1cea7e2c9fb3bc6bec8589337a50f60a45085156 (patch)
treed3fca7aef2993ca87311ea972be5a1ab758f8cda /net/l2tp/l2tp_eth.c
parentwireless: Use eth_<foo>_addr instead of memset (diff)
downloadlinux-1cea7e2c9fb3bc6bec8589337a50f60a45085156.tar.xz
linux-1cea7e2c9fb3bc6bec8589337a50f60a45085156.zip
l2tp: Use eth_<foo>_addr instead of memset
Use the built-in function instead of memset. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_eth.c')
-rw-r--r--net/l2tp/l2tp_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c
index 781b3a226ba7..4b552873b556 100644
--- a/net/l2tp/l2tp_eth.c
+++ b/net/l2tp/l2tp_eth.c
@@ -74,7 +74,7 @@ static int l2tp_eth_dev_init(struct net_device *dev)
priv->dev = dev;
eth_hw_addr_random(dev);
- memset(&dev->broadcast[0], 0xff, 6);
+ eth_broadcast_addr(dev->broadcast);
dev->qdisc_tx_busylock = &l2tp_eth_tx_busylock;
return 0;
}