with `while (loop++ < INIT_LOOP)' `loop' reaches -1 after the loop. Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx> --- 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; -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html