]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: remove set but not used variable 'old'
authorYueHaibing <yuehaibing@huawei.com>
Mon, 29 Apr 2019 14:07:54 +0000 (14:07 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 May 2019 09:26:44 +0000 (11:26 +0200)
commit9c8ec85f1491168e37b3cc10b29027e5c181995d
treeb800ff3f5e7c1b0ad3e25c55e1418a0854c39e4c
parent90540c3c46cd99a77425bf961a10546a4171e955
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 ae8cf455605c ("mac80211: IEEE 802.11 Extended Key ID support")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c