mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 11:36:51 +07:00
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>
This commit is contained in:
parent
6ecd09dd35
commit
7be7e93268
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user