linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wl12xx: loop off by one.
@ 2009-07-06 19:20 Roel Kluin
  2009-07-16  9:23 ` Kalle Valo
  2009-07-16 10:36 ` Roel Kluin
  0 siblings, 2 replies; 4+ messages in thread
From: Roel Kluin @ 2009-07-06 19:20 UTC (permalink / raw)
  To: kalle.valo, linux-wireless, Andrew Morton

with `while (loop++ < INIT_LOOP)' `loop' reaches -1 after the loop.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/net/wireless/wl12xx/boot.c b/drivers/net/wireless/wl12xx/boot.c
index 48ac08c..8899905 100644
--- a/drivers/net/wireless/wl12xx/boot.c
+++ b/drivers/net/wireless/wl12xx/boot.c
@@ -247,7 +247,7 @@ int wl12xx_boot_run_firmware(struct wl12xx *wl)
 		}
 	}
 
-	if (loop >= INIT_LOOP) {
+	if (loop > INIT_LOOP) {
 		wl12xx_error("timeout waiting for the hardware to "
 			     "complete initialization");
 		return -EIO;

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

end of thread, other threads:[~2009-07-16 13:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06 19:20 [PATCH] wl12xx: loop off by one Roel Kluin
2009-07-16  9:23 ` Kalle Valo
2009-07-16 10:36 ` Roel Kluin
2009-07-16 13:44   ` Kalle Valo

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).