we are not doing anything by tracking the number of pending frames.
bail out when we first find a pending frame in any one of the 10 queues.
Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
                timeout = 1;
 
        for (j = 0; j < timeout; j++) {
-               int npend = 0;
+               bool npend = false;
 
                if (j)
                        usleep_range(1000, 2000);
                        if (!ATH_TXQ_SETUP(sc, i))
                                continue;
 
-                       npend += ath9k_has_pending_frames(sc, &sc->tx.txq[i]);
+                       npend = ath9k_has_pending_frames(sc, &sc->tx.txq[i]);
+
+                       if (npend)
+                               break;
                }
 
                if (!npend)