Patchwork sungem: another error printed one too early

login
register
mail settings
Submitter roel kluin
Date Feb. 16, 2009, 2:02 p.m.
Message ID <499971DC.4070406@gmail.com>
Download mbox | patch
Permalink /patch/23220/
State Accepted
Delegated to: David Miller
Headers show

Comments

roel kluin - Feb. 16, 2009, 2:02 p.m.
Another error was printed one too early.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
index 4918763..8d64b1d 100644
--- a/drivers/net/sungem.c
+++ b/drivers/net/sungem.c
@@ -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);
 }