]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ath9k_htc: Remove useless cancel_work_sync
authorSujith <Sujith.Manoharan@atheros.com>
Tue, 1 Jun 2010 09:44:15 +0000 (15:14 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 3 Jun 2010 18:14:40 +0000 (14:14 -0400)
There is no need to cancel the PS work when disassociation
happens. The work handlers are cancelled in the stop()
callback.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_main.c

index 2df9fc9080ae24d05387e97e58dbc3f9b4ce8bb0..c6ad15ae40cb7b94a02c71c640987b0a7969f661 100644 (file)
@@ -1632,7 +1632,6 @@ static void ath9k_htc_bss_info_changed(struct ieee80211_hw *hw,
                        ath_start_ani(priv);
                } else {
                        priv->op_flags &= ~OP_ASSOCIATED;
-                       cancel_work_sync(&priv->ps_work);
                        cancel_delayed_work_sync(&priv->ath9k_ani_work);
                }
        }