Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f94c48d6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Kalle Valo
Browse files

wil6210: fix a warning message condition



"iter" is -1 at the end of the loop and not zero.  It means we don't
print a warning message.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 5c352bf0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -987,7 +987,7 @@ int __wil_down(struct wil6210_priv *wil)
	}
	mutex_lock(&wil->mutex);

	if (!iter)
	if (iter < 0)
		wil_err(wil, "timeout waiting for idle FW/HW\n");

	wil_reset(wil, false);