summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/microchip
diff options
context:
space:
mode:
authordingsenjie <dingsenjie@yulong.com>2021-03-17 13:30:30 +0100
committerDavid S. Miller <davem@davemloft.net>2021-03-17 22:39:34 +0100
commitac1bbf8a81d3d3b0a318c82b88742f4282fb91d8 (patch)
treeed9f89f90c7a2bbdfb52d82b7e263ba6f784ac85 /drivers/net/ethernet/microchip
parentethernet/broadcom:remove unneeded variable: "ret" (diff)
downloadlinux-ac1bbf8a81d3d3b0a318c82b88742f4282fb91d8.tar.xz
linux-ac1bbf8a81d3d3b0a318c82b88742f4282fb91d8.zip
ethernet/microchip:remove unneeded variable: "ret"
remove unneeded variable: "ret". Signed-off-by: dingsenjie <dingsenjie@yulong.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip')
-rw-r--r--drivers/net/ethernet/microchip/encx24j600.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/microchip/encx24j600.c b/drivers/net/ethernet/microchip/encx24j600.c
index 2c0dcd7acf3f..a66a179236fd 100644
--- a/drivers/net/ethernet/microchip/encx24j600.c
+++ b/drivers/net/ethernet/microchip/encx24j600.c
@@ -222,7 +222,6 @@ static int encx24j600_wait_for_autoneg(struct encx24j600_priv *priv)
unsigned long timeout = jiffies + msecs_to_jiffies(2000);
u16 phstat1;
u16 estat;
- int ret = 0;
phstat1 = encx24j600_read_phy(priv, PHSTAT1);
while ((phstat1 & ANDONE) == 0) {
@@ -258,7 +257,7 @@ static int encx24j600_wait_for_autoneg(struct encx24j600_priv *priv)
encx24j600_write_reg(priv, MACLCON, 0x370f);
}
- return ret;
+ return 0;
}
/* Access the PHY to determine link status */