Skip to content

Commit a57cc54

Browse files
Wolfram Sangkuba-moo
authored andcommitted
net: phy: micrel: drop superfluous use of temp variable
'temp' was used before commit c0c99d0 ("net: phy: micrel: remove the use of .ack_interrupt()") refactored the code. Now, we can simplify it a little. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8345657 commit a57cc54

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/net/phy/micrel.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,9 @@ static int kszphy_config_intr(struct phy_device *phydev)
436436
if (err)
437437
return err;
438438

439-
temp = KSZPHY_INTCS_ALL;
440-
err = phy_write(phydev, MII_KSZPHY_INTCS, temp);
439+
err = phy_write(phydev, MII_KSZPHY_INTCS, KSZPHY_INTCS_ALL);
441440
} else {
442-
temp = 0;
443-
err = phy_write(phydev, MII_KSZPHY_INTCS, temp);
441+
err = phy_write(phydev, MII_KSZPHY_INTCS, 0);
444442
if (err)
445443
return err;
446444

0 commit comments

Comments
 (0)