]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: remove set but not used variable 'num_tdls_vifs'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 20 Dec 2018 07:53:10 +0000 (09:53 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 20 Dec 2018 16:46:17 +0000 (18:46 +0200)
commit1eebd23a0e1e4a768c5d79b86406e00db01a3897
treed4f8eb43778487de209d282aa9be0244f410c586
parentafb39d8f47053e0965b1eb64ac7937b786796af8
ath10k: remove set but not used variable 'num_tdls_vifs'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/wireless/ath/ath10k/mac.c: In function 'ath10k_sta_state':
drivers/net/wireless/ath/ath10k/mac.c:6238:7: warning:
 variable 'num_tdls_vifs' set but not used [-Wunused-but-set-variable]

'num_tdls_vifs' not used any more after
  11483afb3eab ("ath10k: fix the logic of limiting tdls peer counts")

Also, remove the single called function ath10k_mac_tdls_vifs_count
and ath10k_mac_tdls_vifs_count_iter.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/mac.c