瀏覽代碼

ath9k: Handle ATH9K_BEACON_RESET_TSF properly

Clearing a local variable is unnecessary.
Get rid of it.

Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Senthil Balasubramanian 15 年之前
父節點
當前提交
1d50a69b18
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/net/wireless/ath/ath9k/hw.c

+ 0 - 1
drivers/net/wireless/ath/ath9k/hw.c

@@ -3422,7 +3422,6 @@ void ath9k_hw_beaconinit(struct ath_hw *ah, u32 next_beacon, u32 beacon_period)
 
 
 	beacon_period &= ~ATH9K_BEACON_ENA;
 	beacon_period &= ~ATH9K_BEACON_ENA;
 	if (beacon_period & ATH9K_BEACON_RESET_TSF) {
 	if (beacon_period & ATH9K_BEACON_RESET_TSF) {
-		beacon_period &= ~ATH9K_BEACON_RESET_TSF;
 		ath9k_hw_reset_tsf(ah);
 		ath9k_hw_reset_tsf(ah);
 	}
 	}