From: Marek BehĂșn Date: Tue, 20 Apr 2021 07:54:01 +0000 (+0200) Subject: net: phy: marvell: use assignment by bitwise AND operator X-Git-Tag: v5.13-rc1~94^2~90^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=002181735184a2660fd081abea2ac560896f874b;p=linux-platform-drivers-x86.git net: phy: marvell: use assignment by bitwise AND operator Use the &= operator instead of ret = ret & ... Signed-off-by: Marek BehĂșn Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 9529aaa3bed3..e505060d0743 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -2352,7 +2352,7 @@ static int m88e6390_get_temp(struct phy_device *phydev, long *temp) if (ret < 0) goto error; - ret = ret & ~MII_88E6390_MISC_TEST_TEMP_SENSOR_MASK; + ret &= ~MII_88E6390_MISC_TEST_TEMP_SENSOR_MASK; ret |= MII_88E6390_MISC_TEST_TEMP_SENSOR_ENABLE_SAMPLE_1S; ret = __phy_write(phydev, MII_88E6390_MISC_TEST, ret);