diff options
author | Marek BehĂșn <kabel@kernel.org> | 2021-04-20 09:54:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-20 16:27:53 -0700 |
commit | 002181735184a2660fd081abea2ac560896f874b (patch) | |
tree | ad7d104b55c772fb7e9ec8b41928129e94e57978 | |
parent | 4f920c299d4c5226f5bc37df8bf288a55bce01a8 (diff) |
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>
-rw-r--r-- | drivers/net/phy/marvell.c | 2 |
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); |