Skip to content

Commit

Permalink
ath9k: remove write-only current_rd_inuse
Browse files Browse the repository at this point in the history
The current_rd_inuse regulatory value is assigned but not used anywhere.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Bob Copeland authored and John W. Linville committed Feb 27, 2009
1 parent 795cc0a commit 63a7c8e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/net/wireless/ath9k/regd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/ath9k/regd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 63a7c8e

Please sign in to comment.