From: Joe Perches Date: Tue, 3 Mar 2015 03:54:59 +0000 (-0800) Subject: l2tp: Use eth__addr instead of memset X-Git-Tag: MMI-PSA29.97-13-9~10281^2~355 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1cea7e2c9fb3bc6bec8589337a50f60a45085156;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git l2tp: Use eth__addr instead of memset Use the built-in function instead of memset. Signed-off-by: Joe Perches Signed-off-by: David S. Miller --- 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; }