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 /net/ethernet | |
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 'net/ethernet')
-rw-r--r-- | net/ethernet/eth.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index 4efad533e5f6..bc39c8c8f589 100644 --- a/net/ethernet/eth.c +++ b/net/ethernet/eth.c | |||
@@ -290,8 +290,6 @@ int eth_mac_addr(struct net_device *dev, void *p) | |||
290 | if (!is_valid_ether_addr(addr->sa_data)) | 290 | if (!is_valid_ether_addr(addr->sa_data)) |
291 | return -EADDRNOTAVAIL; | 291 | return -EADDRNOTAVAIL; |
292 | memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); | 292 | memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); |
293 | /* if device marked as NET_ADDR_RANDOM, reset it */ | ||
294 | dev->addr_assign_type &= ~NET_ADDR_RANDOM; | ||
295 | return 0; | 293 | return 0; |
296 | } | 294 | } |
297 | EXPORT_SYMBOL(eth_mac_addr); | 295 | EXPORT_SYMBOL(eth_mac_addr); |