From: Sujith Date: Tue, 1 Jun 2010 09:44:15 +0000 (+0530) Subject: ath9k_htc: Remove useless cancel_work_sync X-Git-Tag: v2.6.36-rc1~571^2~107^2~363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3901737e25a85052e9650547f95aede62abc999b;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git ath9k_htc: Remove useless cancel_work_sync 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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 2df9fc9..c6ad15a 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c @@ -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); } }