netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] netdevice: ticks reaches 25, not 26.
@ 2009-02-09 22:22 Roel Kluin
  2009-02-10  1:57 ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Roel Kluin @ 2009-02-09 22:22 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, lkml

With while (tick++ < 25) { ... } ticks reaches 25, not 26.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/net/myri_sbus.c b/drivers/net/myri_sbus.c
index 899ed06..a95e217 100644
--- a/drivers/net/myri_sbus.c
+++ b/drivers/net/myri_sbus.c
@@ -161,7 +161,7 @@ static int myri_do_handshake(struct myri_eth *mp)
 
 	myri_enable_irq(mp->lregs, cregs);
 
-	if (tick > 25) {
+	if (tick >= 25) {
 		DET(("25 ticks we lose, failure.\n"));
 		return -1;
 	}

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-02-10  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-09 22:22 [PATCH] netdevice: ticks reaches 25, not 26 Roel Kluin
2009-02-10  1:57 ` David Miller
2009-02-10  8:50   ` Jarek Poplawski
2009-02-10  8:59     ` David Miller
2009-02-10  9:19   ` Roel Kluin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).