dm9000: Fix check for disabled wake on LAN
Subsystems (2)
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 &&.
Signed-off-by Mark Brown <[email protected]>
--- drivers/net/ethernet/davicom/dm9000.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/davicom/dm9000.c +1 -1
@@ -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
David Miller
maintainerFrom: Mark Brown <[email protected]>
Date: Mon, 21 Nov 2011 17:51:56 +0000
Quoted 4 lines
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 Mark Brown <[email protected]>
Good catch, applied, thanks.