Skip to content

Commit 83b98fb

Browse files
brooniedavem330
authored andcommitted
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 <broonie@opensource.wolfsonmicro.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 71b1391 commit 83b98fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ethernet/davicom/dm9000.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ static int dm9000_set_wol(struct net_device *dev, struct ethtool_wolinfo *w)
613613

614614
if (!dm->wake_state)
615615
irq_set_irq_wake(dm->irq_wake, 1);
616-
else if (dm->wake_state & !opts)
616+
else if (dm->wake_state && !opts)
617617
irq_set_irq_wake(dm->irq_wake, 0);
618618
}
619619

0 commit comments

Comments
 (0)