arlan: inverted logic?
Inverted logic Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
f9b604f6c2
commit
9ab56078e6
|
@ -1022,7 +1022,7 @@ static int arlan_mac_addr(struct net_device *dev, void *p)
|
|||
ARLAN_DEBUG_ENTRY("arlan_mac_addr");
|
||||
return -EINVAL;
|
||||
|
||||
if (!netif_running(dev))
|
||||
if (netif_running(dev))
|
||||
return -EBUSY;
|
||||
memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
|
||||
|
||||
|
|
Loading…
Reference in a new issue