summaryrefslogtreecommitdiffstats
path: root/drivers/net/sungem.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-03-04 00:08:39 -0800
committerDavid S. Miller <davem@davemloft.net>2009-03-04 00:11:53 -0800
commit4a8fd2cfdad4d043a1fadba2f3f340945d966825 (patch)
treeb4cf4e6dd1f3a6878063a5ca96d0e99fd81cbd97 /drivers/net/sungem.c
parent948731115774c2e5ff7409360f35389459502211 (diff)
downloadop-kernel-dev-4a8fd2cfdad4d043a1fadba2f3f340945d966825.zip
op-kernel-dev-4a8fd2cfdad4d043a1fadba2f3f340945d966825.tar.gz
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>
Diffstat (limited to 'drivers/net/sungem.c')
-rw-r--r--drivers/net/sungem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
index 8d64b1d..0fcb750 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)
OpenPOWER on IntegriCloud