Commit a57cc54d authored by Wolfram Sang's avatar Wolfram Sang Committed by Jakub Kicinski

net: phy: micrel: drop superfluous use of temp variable

'temp' was used before commit c0c99d0c ("net: phy: micrel: remove
the use of .ack_interrupt()") refactored the code. Now, we can simplify
it a little.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230314124928.44948-1-wsa+renesas@sang-engineering.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 83456576
...@@ -436,11 +436,9 @@ static int kszphy_config_intr(struct phy_device *phydev) ...@@ -436,11 +436,9 @@ static int kszphy_config_intr(struct phy_device *phydev)
if (err) if (err)
return err; return err;
temp = KSZPHY_INTCS_ALL; err = phy_write(phydev, MII_KSZPHY_INTCS, KSZPHY_INTCS_ALL);
err = phy_write(phydev, MII_KSZPHY_INTCS, temp);
} else { } else {
temp = 0; err = phy_write(phydev, MII_KSZPHY_INTCS, 0);
err = phy_write(phydev, MII_KSZPHY_INTCS, temp);
if (err) if (err)
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment