Skip to content

Commit

Permalink
broadcom: Fix &&/|| confusion in bcm54xx_adjust_rxrefclk()
Browse files Browse the repository at this point in the history
commit 7ec4e7d upstream.

This always evaluates to true.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
RoelKluin authored and debian-kernel-patches-to-git committed Sep 11, 2011
1 parent f62b9b5 commit 264498e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/phy/broadcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ static void bcm54xx_adjust_rxrefclk(struct phy_device *phydev)
bool clk125en = true;

/* Abort if we are using an untested phy. */
if (BRCM_PHY_MODEL(phydev) != PHY_ID_BCM57780 ||
BRCM_PHY_MODEL(phydev) != PHY_ID_BCM50610 ||
if (BRCM_PHY_MODEL(phydev) != PHY_ID_BCM57780 &&
BRCM_PHY_MODEL(phydev) != PHY_ID_BCM50610 &&
BRCM_PHY_MODEL(phydev) != PHY_ID_BCM50610M)
return;

Expand Down

0 comments on commit 264498e

Please sign in to comment.