提交 423049ab 编写于 作者: J Joe Perches 提交者: David S. Miller

8021q: Use eth_<foo>_addr instead of memset

Use the built-in function instead of memset.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3b6ed26d
...@@ -792,5 +792,5 @@ void vlan_setup(struct net_device *dev) ...@@ -792,5 +792,5 @@ void vlan_setup(struct net_device *dev)
dev->destructor = vlan_dev_free; dev->destructor = vlan_dev_free;
dev->ethtool_ops = &vlan_ethtool_ops; dev->ethtool_ops = &vlan_ethtool_ops;
memset(dev->broadcast, 0, ETH_ALEN); eth_zero_addr(dev->broadcast);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册