Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83b98fb4 authored by Mark Brown's avatar Mark Brown Committed by David S. Miller
Browse files

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 &&.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 71b1391a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -613,7 +613,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);
	}