From: Roel Kluin Date: Wed, 4 Mar 2009 08:08:39 +0000 (-0800) Subject: sungem: another error printed one too early X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4a8fd2cfdad4d043a1fadba2f3f340945d966825;p=linux-2.6-omap-h63xx.git sungem: another error printed one too early Another error was printed one too early. Signed-off-by: Roel Kluin Signed-off-by: David S. Miller --- diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index 8d64b1da046..0fcb7503363 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c @@ -1229,7 +1229,7 @@ static void gem_reset(struct gem *gp) break; } 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); if (gp->phy_type == phy_serialink || gp->phy_type == phy_serdes)