projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2beae1
)
l2tp: Use eth_<foo>_addr instead of memset
author
Joe Perches
<joe@perches.com>
Tue, 3 Mar 2015 03:54:59 +0000
(19:54 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 3 Mar 2015 22:01:38 +0000
(17:01 -0500)
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>
net/l2tp/l2tp_eth.c
patch
|
blob
|
blame
|
history
diff --git
a/net/l2tp/l2tp_eth.c
b/net/l2tp/l2tp_eth.c
index 781b3a226ba73204aa9ff68923ae2385a88e7205..4b552873b55603a648f37bbd497efbb43bd869a4 100644
(file)
--- 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;
}