summaryrefslogtreecommitdiff
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2021-04-20 10:54:01 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-21 02:27:53 +0300
commit002181735184a2660fd081abea2ac560896f874b (patch)
treead7d104b55c772fb7e9ec8b41928129e94e57978 /drivers/net/phy
parent4f920c299d4c5226f5bc37df8bf288a55bce01a8 (diff)
downloadlinux-002181735184a2660fd081abea2ac560896f874b.tar.xz
net: phy: marvell: use assignment by bitwise AND operator
Use the &= operator instead of ret = ret & ... Signed-off-by: Marek BehĂșn <kabel@kernel.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/marvell.c2
1 files changed, 1 insertions, 1 deletions
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);