Skip to content

Commit

Permalink
8021q: Use eth_<foo>_addr instead of memset
Browse files Browse the repository at this point in the history
Use the built-in function instead of memset.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JoePerches authored and davem330 committed Mar 3, 2015
1 parent 3b6ed26 commit 423049a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/8021q/vlan_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 423049a

Please sign in to comment.