Skip to content

Commit ac1bbf8

Browse files
dingsenjiedavem330
authored andcommitted
ethernet/microchip:remove unneeded variable: "ret"
remove unneeded variable: "ret". Signed-off-by: dingsenjie <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f0744a8 commit ac1bbf8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/microchip/encx24j600.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ static int encx24j600_wait_for_autoneg(struct encx24j600_priv *priv)
222222
unsigned long timeout = jiffies + msecs_to_jiffies(2000);
223223
u16 phstat1;
224224
u16 estat;
225-
int ret = 0;
226225

227226
phstat1 = encx24j600_read_phy(priv, PHSTAT1);
228227
while ((phstat1 & ANDONE) == 0) {
@@ -258,7 +257,7 @@ static int encx24j600_wait_for_autoneg(struct encx24j600_priv *priv)
258257
encx24j600_write_reg(priv, MACLCON, 0x370f);
259258
}
260259

261-
return ret;
260+
return 0;
262261
}
263262

264263
/* Access the PHY to determine link status */

0 commit comments

Comments
 (0)