mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
wl1251: timeout one too soon in wl1251_boot_run_firmware()
`loop' reaches INIT_LOOP + 1 after the loop. so if ACX_INTR_INIT_COMPLETE occurs in the last iteration the write occurs but also the error out as if a timeout occurred. This is probably very unlikely to ever occur. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Acked-by: Kalle Valo <kalle.valo@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
24feda0084
commit
e8a4a6df73
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ int wl1251_boot_run_firmware(struct wl1251 *wl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loop >= INIT_LOOP) {
|
if (loop > INIT_LOOP) {
|
||||||
wl1251_error("timeout waiting for the hardware to "
|
wl1251_error("timeout waiting for the hardware to "
|
||||||
"complete initialization");
|
"complete initialization");
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
Loading…
Reference in a new issue