Skip to contentSkip to conversation

ath9k: remove write-only current_rd_inuse

PATCH New Bob Copeland 2 participants 2 messages Feb 12, 2009 – Feb 13, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 ath9k: remove write-only current_rd_inuse

The current_rd_inuse regulatory value is assigned but not used anywhere.

---
 drivers/net/wireless/ath9k/regd.c |    1 -
 drivers/net/wireless/ath9k/regd.h |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)
drivers/net/wireless/ath9k/regd.c +0 -1
index 8c2b56a..0c632ff 100644
@@ -433,7 +433,6 @@ int ath9k_regd_init(struct ath_hw *ah)
 			regdmn = country->regDmnEnum;
 	}
 
-	ah->regulatory.current_rd_inuse = regdmn;
 	ah->regulatory.regpair = ath9k_get_regpair(regdmn);
 
 	if (!ah->regulatory.regpair) {
drivers/net/wireless/ath9k/regd.h +0 -1
index 39420de..53a9f46 100644
@@ -52,7 +52,6 @@ struct ath9k_regulatory {
 	u32 tp_scale;
 	u16 current_rd;
 	u16 current_rd_ext;
-	u16 current_rd_inuse;
 	int16_t power_limit;
 	struct reg_dmn_pair_mapping *regpair;
 };
Signature · 1 line
1.6.0.6