net: remove unnecessary NET_ADDR_RANDOM "bitclean"
NET_ADDR_SET is set in dev_set_mac_address() no need to alter dev->addr_assign_type value in drivers. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
fbdeca2d77
commit
15c6ff3bc0
@@ -375,7 +375,6 @@ static int macvlan_set_mac_address(struct net_device *dev, void *p)
|
||||
|
||||
if (!(dev->flags & IFF_UP)) {
|
||||
/* Just copy in the new address */
|
||||
dev->addr_assign_type &= ~NET_ADDR_RANDOM;
|
||||
memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN);
|
||||
} else {
|
||||
/* Rehash and update the device filters */
|
||||
|
||||
Reference in New Issue
Block a user