diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-07-12 08:47:03 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-18 20:40:53 +0400 |
commit | 7be7e93268447cbb42fa0e6939b6372c156a1ad5 (patch) | |
tree | b1ae35eb3cf1c6fd798eee95824df6d5a2a0d44f /drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c | |
parent | 6ecd09dd35fd07b8f2f6f5210ecffd4cc5ac0581 (diff) | |
download | linux-7be7e93268447cbb42fa0e6939b6372c156a1ad5.tar.xz |
qlge: fix an "&&" vs "||" bug
The condition is always true so WOL will never work.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c b/drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c index 3d4462bd9de7..6f316ab23257 100644 --- a/drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c +++ b/drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c @@ -440,7 +440,7 @@ static int ql_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) unsigned short ssys_dev = qdev->pdev->subsystem_device; /* WOL is only supported for mezz card. */ - if (ssys_dev != QLGE_MEZZ_SSYS_ID_068 || + if (ssys_dev != QLGE_MEZZ_SSYS_ID_068 && ssys_dev != QLGE_MEZZ_SSYS_ID_180) { netif_info(qdev, drv, qdev->ndev, "WOL is only supported for mezz card\n"); |