diff options
author | Jiri Pirko <jiri@resnulli.us> | 2012-12-31 22:30:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-04 01:37:36 -0500 |
commit | 15c6ff3bc0ff3464a8c7efcdea09c86454571622 (patch) | |
tree | ce49a0d1f0b5f4cd075d3df0875c0bf0a44ee4ad /drivers/net/ethernet/micrel/ks8851.c | |
parent | fbdeca2d7753aa1ab929aeb77ccc46489eed02b9 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/micrel/ks8851.c')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c index 286816a4e783..d59bc0e151b3 100644 --- a/drivers/net/ethernet/micrel/ks8851.c +++ b/drivers/net/ethernet/micrel/ks8851.c | |||
@@ -1052,7 +1052,6 @@ static int ks8851_set_mac_address(struct net_device *dev, void *addr) | |||
1052 | if (!is_valid_ether_addr(sa->sa_data)) | 1052 | if (!is_valid_ether_addr(sa->sa_data)) |
1053 | return -EADDRNOTAVAIL; | 1053 | return -EADDRNOTAVAIL; |
1054 | 1054 | ||
1055 | dev->addr_assign_type &= ~NET_ADDR_RANDOM; | ||
1056 | memcpy(dev->dev_addr, sa->sa_data, ETH_ALEN); | 1055 | memcpy(dev->dev_addr, sa->sa_data, ETH_ALEN); |
1057 | return ks8851_write_mac_addr(dev); | 1056 | return ks8851_write_mac_addr(dev); |
1058 | } | 1057 | } |