Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ec4e7d3 authored by roel kluin's avatar roel kluin Committed by David S. Miller
Browse files

broadcom: Fix &&/|| confusion in bcm54xx_adjust_rxrefclk()



This always evaluates to true.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 890c8c18
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -331,8 +331,8 @@ static void bcm54xx_adjust_rxrefclk(struct phy_device *phydev)
	bool clk125en = true;
	bool clk125en = true;


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