]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ath9k: remove write-only current_rd_inuse
authorBob Copeland <me@bobcopeland.com>
Thu, 12 Feb 2009 18:38:53 +0000 (13:38 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:51:46 +0000 (14:51 -0500)
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>
drivers/net/wireless/ath9k/regd.c
drivers/net/wireless/ath9k/regd.h

index 8c2b56ac55ff250c68f8914d00c3c2377a8cfea6..0c632fff8adac9fa761f8772a72c76aec4fbe8b3 100644 (file)
@@ -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) {
index 39420de818f8c57b78645943ce319631ffe18534..53a9f4627f3cae21dc3067a7a4536df283879384 100644 (file)
@@ -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;
 };