Преглед изворни кода

sungem: another error printed one too early

Another error was printed one too early.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Roel Kluin пре 16 година
родитељ
комит
4a8fd2cfda
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      drivers/net/sungem.c

+ 1 - 1
drivers/net/sungem.c

@@ -1229,7 +1229,7 @@ static void gem_reset(struct gem *gp)
 			break;
 			break;
 	} while (val & (GREG_SWRST_TXRST | GREG_SWRST_RXRST));
 	} while (val & (GREG_SWRST_TXRST | GREG_SWRST_RXRST));
 
 
-	if (limit <= 0)
+	if (limit < 0)
 		printk(KERN_ERR "%s: SW reset is ghetto.\n", gp->dev->name);
 		printk(KERN_ERR "%s: SW reset is ghetto.\n", gp->dev->name);
 
 
 	if (gp->phy_type == phy_serialink || gp->phy_type == phy_serdes)
 	if (gp->phy_type == phy_serialink || gp->phy_type == phy_serdes)