projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b6ed26
)
8021q: Use eth_<foo>_addr instead of memset
author
Joe Perches
<joe@perches.com>
Tue, 3 Mar 2015 03:54:52 +0000
(19:54 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 3 Mar 2015 22:01:37 +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/8021q/vlan_dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/8021q/vlan_dev.c
b/net/8021q/vlan_dev.c
index 1dcfec8b49f3f4a725b853f8ce9ee202bab5c7f1..f196552ec3c41e13f2891f3a29a43844d56c2574 100644
(file)
--- a/
net/8021q/vlan_dev.c
+++ b/
net/8021q/vlan_dev.c
@@
-792,5
+792,5
@@
void vlan_setup(struct net_device *dev)
dev->destructor = vlan_dev_free;
dev->ethtool_ops = &vlan_ethtool_ops;
-
memset(dev->broadcast, 0, ETH_ALEN
);
+
eth_zero_addr(dev->broadcast
);
}