aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@intel.com>2014-12-14 04:05:52 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-12-17 09:45:17 -0500
commit1a952c94b544cbf01291186b8c6ca25fbb5873f2 (patch)
tree438433b33924cc38bf145bef0460587bed119563 /net/mac80211
parent1c45c5ce324fec967dca5993f79b54769da410dc (diff)
mac80211: remove unused variable in ieee80211_parse_ch_switch_ie()
The ht_oper variable is assigned a value, but never used in ieee80211_parse_ch_switch_ie(). Remove it. Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/spectmgmt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/mac80211/spectmgmt.c b/net/mac80211/spectmgmt.c
index efeba56c913b..06e6ac8cc693 100644
--- a/net/mac80211/spectmgmt.c
+++ b/net/mac80211/spectmgmt.c
@@ -34,19 +34,15 @@ int ieee80211_parse_ch_switch_ie(struct ieee80211_sub_if_data *sdata,
34 struct cfg80211_chan_def new_vht_chandef = {}; 34 struct cfg80211_chan_def new_vht_chandef = {};
35 const struct ieee80211_sec_chan_offs_ie *sec_chan_offs; 35 const struct ieee80211_sec_chan_offs_ie *sec_chan_offs;
36 const struct ieee80211_wide_bw_chansw_ie *wide_bw_chansw_ie; 36 const struct ieee80211_wide_bw_chansw_ie *wide_bw_chansw_ie;
37 const struct ieee80211_ht_operation *ht_oper;
38 int secondary_channel_offset = -1; 37 int secondary_channel_offset = -1;
39 38
40 sec_chan_offs = elems->sec_chan_offs; 39 sec_chan_offs = elems->sec_chan_offs;
41 wide_bw_chansw_ie = elems->wide_bw_chansw_ie; 40 wide_bw_chansw_ie = elems->wide_bw_chansw_ie;
42 ht_oper = elems->ht_operation;
43 41
44 if (sta_flags & (IEEE80211_STA_DISABLE_HT | 42 if (sta_flags & (IEEE80211_STA_DISABLE_HT |
45 IEEE80211_STA_DISABLE_40MHZ)) { 43 IEEE80211_STA_DISABLE_40MHZ)) {
46 sec_chan_offs = NULL; 44 sec_chan_offs = NULL;
47 wide_bw_chansw_ie = NULL; 45 wide_bw_chansw_ie = NULL;
48 /* only used for bandwidth here */
49 ht_oper = NULL;
50 } 46 }
51 47
52 if (sta_flags & IEEE80211_STA_DISABLE_VHT) 48 if (sta_flags & IEEE80211_STA_DISABLE_VHT)