sungem: another error printed one too early
authorroel kluin <roel.kluin@gmail.com>
Mon, 16 Feb 2009 04:02:04 +0000 (04:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2009 09:03:15 +0000 (01:03 -0800)
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>
drivers/net/sungem.c

index 4918763410686d02750a6f7ef8141271c19b098a..8d64b1da0465c99a0502c642900f325964cf0186 100644 (file)
@@ -1157,7 +1157,7 @@ static void gem_pcs_reset(struct gem *gp)
                if (limit-- <= 0)
                        break;
        }
-       if (limit <= 0)
+       if (limit < 0)
                printk(KERN_WARNING "%s: PCS reset bit would not clear.\n",
                       gp->dev->name);
 }