mirror of
https://gitee.com/openharmony/kernel_linux
synced 2025-05-14 18:56:42 +00:00
8021q: Use eth_<foo>_addr instead of memset
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>
This commit is contained in:
parent
3b6ed26d8b
commit
423049ab1e
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user