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
@@ -1080,7 +1080,6 @@ static int ks8842_set_mac(struct net_device *netdev, void *p)
|
||||
if (!is_valid_ether_addr(addr->sa_data))
|
||||
return -EADDRNOTAVAIL;
|
||||
|
||||
netdev->addr_assign_type &= ~NET_ADDR_RANDOM;
|
||||
memcpy(netdev->dev_addr, mac, netdev->addr_len);
|
||||
|
||||
ks8842_write_mac_addr(adapter, mac);
|
||||
|
@@ -1052,7 +1052,6 @@ static int ks8851_set_mac_address(struct net_device *dev, void *addr)
|
||||
if (!is_valid_ether_addr(sa->sa_data))
|
||||
return -EADDRNOTAVAIL;
|
||||
|
||||
dev->addr_assign_type &= ~NET_ADDR_RANDOM;
|
||||
memcpy(dev->dev_addr, sa->sa_data, ETH_ALEN);
|
||||
return ks8851_write_mac_addr(dev);
|
||||
}
|
||||
|
@@ -1237,7 +1237,6 @@ static int ks_set_mac_address(struct net_device *netdev, void *paddr)
|
||||
struct sockaddr *addr = paddr;
|
||||
u8 *da;
|
||||
|
||||
netdev->addr_assign_type &= ~NET_ADDR_RANDOM;
|
||||
memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);
|
||||
|
||||
da = (u8 *)netdev->dev_addr;
|
||||
|
Reference in New Issue
Block a user