summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/net/ethernet/sfc/txc43128_phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/net/ethernet/sfc/txc43128_phy.c')
-rw-r--r--kernel/drivers/net/ethernet/sfc/txc43128_phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/net/ethernet/sfc/txc43128_phy.c b/kernel/drivers/net/ethernet/sfc/txc43128_phy.c
index 3d5ee3259..194f67d9f 100644
--- a/kernel/drivers/net/ethernet/sfc/txc43128_phy.c
+++ b/kernel/drivers/net/ethernet/sfc/txc43128_phy.c
@@ -418,7 +418,7 @@ static void txc_reset_logic_mmd(struct efx_nic *efx, int mmd)
val |= (1 << TXC_GLCMD_LMTSWRST_LBN);
efx_mdio_write(efx, mmd, TXC_GLRGS_GLCMD, val);
- while (tries--) {
+ while (--tries) {
val = efx_mdio_read(efx, mmd, TXC_GLRGS_GLCMD);
if (!(val & (1 << TXC_GLCMD_LMTSWRST_LBN)))
break;