]> git.karo-electronics.de Git - linux-beck.git/commitdiff
wil6210: fix a warning message condition
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Dec 2015 11:10:00 +0000 (14:10 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 31 Dec 2015 13:25:13 +0000 (15:25 +0200)
"iter" is -1 at the end of the loop and not zero.  It means we don't
print a warning message.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/main.c

index 09b4daebab9d91ec93b5e7491e4b70f2397b00dc..b39f0bfc591e9f9a120d72e658a0aaa6eee5066c 100644 (file)
@@ -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);