drivers/net: Remove boolean comparisons to true/false
Booleans should not be compared to true or false but be directly tested or tested with !. Done via cocci script: @@ bool t; @@ - t == true + t @@ bool t; @@ - t != true + !t @@ bool t; @@ - t == false + !t @@ bool t; @@ - t != false + t Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
1a0d6ae579
commit
23677ce317
@@ -355,8 +355,7 @@ static void bcm54xx_adjust_rxrefclk(struct phy_device *phydev)
|
||||
}
|
||||
}
|
||||
|
||||
if (clk125en == false ||
|
||||
(phydev->dev_flags & PHY_BRCM_AUTO_PWRDWN_ENABLE))
|
||||
if (!clk125en || (phydev->dev_flags & PHY_BRCM_AUTO_PWRDWN_ENABLE))
|
||||
val &= ~BCM54XX_SHD_SCR3_DLLAPD_DIS;
|
||||
else
|
||||
val |= BCM54XX_SHD_SCR3_DLLAPD_DIS;
|
||||
@@ -373,8 +372,7 @@ static void bcm54xx_adjust_rxrefclk(struct phy_device *phydev)
|
||||
|
||||
orig = val;
|
||||
|
||||
if (clk125en == false ||
|
||||
(phydev->dev_flags & PHY_BRCM_AUTO_PWRDWN_ENABLE))
|
||||
if (!clk125en || (phydev->dev_flags & PHY_BRCM_AUTO_PWRDWN_ENABLE))
|
||||
val |= BCM54XX_SHD_APD_EN;
|
||||
else
|
||||
val &= ~BCM54XX_SHD_APD_EN;
|
||||
|
Reference in New Issue
Block a user