diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-04-29 14:07:54 +0000 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-05-24 11:26:44 +0200 |
commit | 818e9dfa2c145c7b0d241c5c419f4b897a1af564 (patch) | |
tree | b800ff3f5e7c1b0ad3e25c55e1418a0854c39e4c /net/mac80211/key.c | |
parent | 79c92ca42b5a3e0ea172ea2ce8df8e125af237da (diff) | |
download | linux-818e9dfa2c145c7b0d241c5c419f4b897a1af564.tar.gz linux-818e9dfa2c145c7b0d241c5c419f4b897a1af564.tar.bz2 linux-818e9dfa2c145c7b0d241c5c419f4b897a1af564.zip |
mac80211: remove set but not used variable 'old'
Fixes gcc '-Wunused-but-set-variable' warning:
net/mac80211/key.c: In function 'ieee80211_set_tx_key':
net/mac80211/key.c:271:24: warning:
variable 'old' set but not used [-Wunused-but-set-variable]
It is not used since introduction in
commit 96fc6efb9ad9 ("mac80211: IEEE 802.11 Extended Key ID support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/key.c')
-rw-r--r-- | net/mac80211/key.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/mac80211/key.c b/net/mac80211/key.c index 20bf9db7a388..89f09a09efdb 100644 --- a/net/mac80211/key.c +++ b/net/mac80211/key.c @@ -268,11 +268,9 @@ int ieee80211_set_tx_key(struct ieee80211_key *key) { struct sta_info *sta = key->sta; struct ieee80211_local *local = key->local; - struct ieee80211_key *old; assert_key_lock(local); - old = key_mtx_dereference(local, sta->ptk[sta->ptk_idx]); sta->ptk_idx = key->conf.keyidx; ieee80211_check_fast_xmit(sta); |