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:
parent
fbdeca2d77
commit
15c6ff3bc0
27 changed files with 4 additions and 35 deletions
|
@ -290,8 +290,6 @@ int eth_mac_addr(struct net_device *dev, void *p)
|
|||
if (!is_valid_ether_addr(addr->sa_data))
|
||||
return -EADDRNOTAVAIL;
|
||||
memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN);
|
||||
/* if device marked as NET_ADDR_RANDOM, reset it */
|
||||
dev->addr_assign_type &= ~NET_ADDR_RANDOM;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(eth_mac_addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue