Skip to contentSkip to conversation

dm9000: Fix check for disabled wake on LAN

PATCH In review Mark Brown 2 participants 2 messages Nov 21, 2011 – Nov 26, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 dm9000: Fix check for disabled wake on LAN

We're trying to check if any options are defined which isn't wha the existing code does due to confusing & and &&.

---
 drivers/net/ethernet/davicom/dm9000.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/davicom/dm9000.c +1 -1
index 26be1df..f801754 100644
@@ -614,7 +614,7 @@ static int dm9000_set_wol(struct net_device *dev, struct ethtool_wolinfo *w)
 
 		if (!dm->wake_state)
 			irq_set_irq_wake(dm->irq_wake, 1);
-		else if (dm->wake_state & !opts)
+		else if (dm->wake_state && !opts)
 			irq_set_irq_wake(dm->irq_wake, 0);
 	}
 
Signature · 1 line
1.7.7.3