Skip to content

Commit

Permalink
mac80211: remove unused variable in ieee80211_parse_ch_switch_ie()
Browse files Browse the repository at this point in the history
The ht_oper variable is assigned a value, but never used in
ieee80211_parse_ch_switch_ie().  Remove it.

Signed-off-by: Luciano Coelho <[email protected]>
Signed-off-by: Emmanuel Grumbach <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
lucacoelho authored and jmberg-intel committed Dec 17, 2014
1 parent 1c45c5c commit 1a952c9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions net/mac80211/spectmgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,15 @@ int ieee80211_parse_ch_switch_ie(struct ieee80211_sub_if_data *sdata,
struct cfg80211_chan_def new_vht_chandef = {};
const struct ieee80211_sec_chan_offs_ie *sec_chan_offs;
const struct ieee80211_wide_bw_chansw_ie *wide_bw_chansw_ie;
const struct ieee80211_ht_operation *ht_oper;
int secondary_channel_offset = -1;

sec_chan_offs = elems->sec_chan_offs;
wide_bw_chansw_ie = elems->wide_bw_chansw_ie;
ht_oper = elems->ht_operation;

if (sta_flags & (IEEE80211_STA_DISABLE_HT |
IEEE80211_STA_DISABLE_40MHZ)) {
sec_chan_offs = NULL;
wide_bw_chansw_ie = NULL;
/* only used for bandwidth here */
ht_oper = NULL;
}

if (sta_flags & IEEE80211_STA_DISABLE_VHT)
Expand Down

0 comments on commit 1a952c9

Please sign in to comment.