summaryrefslogtreecommitdiffstats
path: root/net/wireless/reg.c
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanoharan@atheros.com>2011-04-25 15:56:16 +0530
committerJohn W. Linville <linville@tuxdriver.com>2011-05-10 15:53:47 -0400
commit6572e91d5fa61bb3f879a00b96d763c566ced6cb (patch)
tree90702b81df68da39c5475af3555c624871be209a /net/wireless/reg.c
parentd21844c7c23a71acea6fd68365b09b40e252a876 (diff)
downloadlinux-6572e91d5fa61bb3f879a00b96d763c566ced6cb.tar.bz2
wireless: Fix warnings due to -Wunused-but-set-variable
These warnings are exposed by gcc 4.6. net/wireless/reg.c: In function 'freq_reg_info_regd': net/wireless/reg.c:675:38: warning: variable 'pr' set but not used [-Wunused-but-set-variable] net/wireless/lib80211_crypt_wep.c: In function 'lib80211_wep_build_iv': net/wireless/lib80211_crypt_wep.c:99:12: warning: variable 'len' set but not used [-Wunused-but-set-variable] Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r--net/wireless/reg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 8982053f9961..798cb4cd0702 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -672,11 +672,9 @@ static int freq_reg_info_regd(struct wiphy *wiphy,
for (i = 0; i < regd->n_reg_rules; i++) {
const struct ieee80211_reg_rule *rr;
const struct ieee80211_freq_range *fr = NULL;
- const struct ieee80211_power_rule *pr = NULL;
rr = &regd->reg_rules[i];
fr = &rr->freq_range;
- pr = &rr->power_rule;
/*
* We only need to know if one frequency rule was