tg3: fix typo && -> || in drivers/net/tg3.c
Subsystems (2)
PATCH 1/1 tg3: fix typo && -> || in drivers/net/tg3.c
Fix the typo && -> ||
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/net/tg3.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/tg3.c +2 -2
@@ -2237,8 +2237,8 @@ static int tg3_set_power_state(struct tg3 *tp, pci_power_t state) phyid = phydev->drv->phy_id & phydev->drv->phy_id_mask;if (phyid !=TG3_PHY_ID_BCMAC131 ) { phyid &=TG3_PHY_OUI_MASK ; -if (phyid ==TG3_PHY_OUI_1 && - phyid ==TG3_PHY_OUI_2 && +if (phyid ==TG3_PHY_OUI_1 || + phyid ==TG3_PHY_OUI_2 || phyid ==TG3_PHY_OUI_3 ) do_low_power = true; }
Signature · 1 line
1.5.3.8
David Miller
maintainerFrom: Wei Yongjun <[email protected]>
Date: Tue, 17 Feb 2009 14:19:24 +0800
Quoted 3 lines
Fix the typo && -> ||
Signed-off-by Wei Yongjun <[email protected]>
Roel Kluin already posted a fix for this, thank you.