diff options
author | Joachim Eastwood <manabian@gmail.com> | 2012-11-16 04:47:15 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-19 19:01:18 -0500 |
commit | c867b55eb4831a493631205f2744b2e77ce0983b (patch) | |
tree | c8d603edb45c8b7e97ce765f908efa5d60f4d76d /drivers/net/ethernet/seeq | |
parent | ae4b46e9d7128d2d76e6857fe0b9fc240e8ac695 (diff) | |
download | linux-c867b55eb4831a493631205f2744b2e77ce0983b.tar.bz2 |
net/ethernet: remove useless is_valid_ether_addr from drivers ndo_open
If ndo_validate_addr is set to the generic eth_validate_addr
function there is no point in calling is_valid_ether_addr
from driver ndo_open if ndo_open is not used elsewhere in
the driver.
With this change is_valid_ether_addr will be called from the
generic eth_validate_addr function. So there should be no change
in the actual behavior.
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/seeq')
-rw-r--r-- | drivers/net/ethernet/seeq/ether3.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/seeq/ether3.c b/drivers/net/ethernet/seeq/ether3.c index 6a40dd03a32f..72a01748d1b1 100644 --- a/drivers/net/ethernet/seeq/ether3.c +++ b/drivers/net/ethernet/seeq/ether3.c @@ -399,12 +399,6 @@ ether3_probe_bus_16(struct net_device *dev, int val) static int ether3_open(struct net_device *dev) { - if (!is_valid_ether_addr(dev->dev_addr)) { - printk(KERN_WARNING "%s: invalid ethernet MAC address\n", - dev->name); - return -EINVAL; - } - if (request_irq(dev->irq, ether3_interrupt, 0, "ether3", dev)) return -EAGAIN; |