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)
commitbff70e5f78e9708de18cbed003abe10349719ba5
treed4f8eb43778487de209d282aa9be0244f410c586
parent3fe970e76b374bdb4a6232cb8b78945e3d2b478f
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
  9a993cc1ea95 ("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