summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-03-04 09:08:39 +0100
committerDavid S. Miller <davem@davemloft.net>2009-03-04 09:11:53 +0100
commit4a8fd2cfdad4d043a1fadba2f3f340945d966825 (patch)
treeb4cf4e6dd1f3a6878063a5ca96d0e99fd81cbd97
parentaoe: error printed 1 too early (diff)
downloadlinux-4a8fd2cfdad4d043a1fadba2f3f340945d966825.tar.xz
linux-4a8fd2cfdad4d043a1fadba2f3f340945d966825.zip
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>
-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 8d64b1da0465..0fcb7503363d 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)