Skip to contentSkip to conversation

ath9k: remove useless conditional

PATCH New Bob Copeland 1 participant 1 message Oct 26, 2008 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: remove useless conditional

Hi,

I saw this while reading through the ath9k code. Not sure if it was just dead code or if it should be returning false.

From: Bob Copeland <[email protected]>
Subject: [PATCH] ath9k: remove useless conditional

ath9k_hw_keyreset returns true in either branch.

---
 drivers/net/wireless/ath9k/hw.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/net/wireless/ath9k/hw.c +0 -3
index 98bc25c..c920822 100644
@@ -7194,9 +7194,6 @@ bool ath9k_hw_keyreset(struct ath_hal *ah, u16 entry)
 
 	}
 
-	if (ah->ah_curchan == NULL)
-		return true;
-
 	return true;
 }
 
Signature · 4 lines
1.5.4.2.182.gb3092

-- 
Bob Copeland %% www.bobcopeland.com