summaryrefslogtreecommitdiffstats
path: root/net/l2tp
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-02 19:54:59 -0800
committerDavid S. Miller <davem@davemloft.net>2015-03-03 17:01:38 -0500
commit1cea7e2c9fb3bc6bec8589337a50f60a45085156 (patch)
treed3fca7aef2993ca87311ea972be5a1ab758f8cda /net/l2tp
parentd2beae1078a236d503b6e010fc4d65bb2e14dbdc (diff)
downloadblackbird-op-linux-1cea7e2c9fb3bc6bec8589337a50f60a45085156.tar.gz
blackbird-op-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')
-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;
}
OpenPOWER on IntegriCloud