diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-03-07 22:47:00 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-11 14:16:42 +0100 |
commit | 511044ea0bfc06614d903263ad094d1071fa172f (patch) | |
tree | c71df71244f954f4c87c6484234602ed16d5276c /net/mac80211/scan.c | |
parent | mac80211: batch key free synchronize_net() (diff) | |
download | linux-511044ea0bfc06614d903263ad094d1071fa172f.tar.xz linux-511044ea0bfc06614d903263ad094d1071fa172f.zip |
mac80211: remove a few set but unused variables
Found by compiling with W=1.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 43a45cf00e06..5dc17c623f72 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c @@ -153,7 +153,6 @@ void ieee80211_scan_rx(struct ieee80211_local *local, struct sk_buff *skb) u8 *elements; struct ieee80211_channel *channel; size_t baselen; - bool beacon; struct ieee802_11_elems elems; if (skb->len < 24 || @@ -175,11 +174,9 @@ void ieee80211_scan_rx(struct ieee80211_local *local, struct sk_buff *skb) elements = mgmt->u.probe_resp.variable; baselen = offsetof(struct ieee80211_mgmt, u.probe_resp.variable); - beacon = false; } else { baselen = offsetof(struct ieee80211_mgmt, u.beacon.variable); elements = mgmt->u.beacon.variable; - beacon = true; } if (baselen > skb->len) |