]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
wlcore: remove unnecessary WARN_ON in wl12xx_tx_reset
authorVictor Goldenshtein <victorg@ti.com>
Tue, 27 Nov 2012 06:44:52 +0000 (08:44 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 5 Dec 2012 07:41:47 +0000 (09:41 +0200)
Sometimes the driver can perform a recovery while Tx is
active, this will trigger unnecessary warning which might
delay the recovery for more than 100 mS.

Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/tx.c

index c3607f09284b3e977e24c6950420b606dbd82fc6..b5b9bd6d4f06787f3d3d59827e0d996724ab60ed 100644 (file)
@@ -1028,7 +1028,7 @@ void wl12xx_tx_reset(struct wl1271 *wl)
        struct ieee80211_tx_info *info;
 
        /* only reset the queues if something bad happened */
-       if (WARN_ON_ONCE(wl1271_tx_total_queue_count(wl) != 0)) {
+       if (wl1271_tx_total_queue_count(wl) != 0) {
                for (i = 0; i < WL12XX_MAX_LINKS; i++)
                        wl1271_tx_reset_link_queues(wl, i);