From: Joe Perches Date: Tue, 3 Mar 2015 03:54:52 +0000 (-0800) Subject: 8021q: Use eth__addr instead of memset X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=423049ab1e93cfcffff7de6ff40e68edede8fdf5;p=openwrt%2Fstaging%2Fblogic.git 8021q: 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/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index 1dcfec8b49f3..f196552ec3c4 100644 --- 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); }