hostap: hostap_ap: Mark 'txt' as __always_unused
authorLee Jones <lee.jones@linaro.org>
Wed, 19 Aug 2020 07:23:45 +0000 (08:23 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 1 Sep 2020 09:02:41 +0000 (12:02 +0300)
commitdebdbb0c1b20c8517f384fcd0d9622b9eb574f8c
tree58a736d833e6516611fbd0e7bc9fd43668c09f78
parent6182abd858f74f7701ae19bf6b89eb33a73a61e1
hostap: hostap_ap: Mark 'txt' as __always_unused

Keeping this around to act as documentation, since its use is
currently #if'ed out at the end of the function.

Fixes the following W=1 kernel build warning(s):

 drivers/net/wireless/intersil/hostap/hostap_ap.c: In function ‘handle_assoc’:
 drivers/net/wireless/intersil/hostap/hostap_ap.c:1507:8: warning: variable ‘txt’ set but not used [-Wunused-but-set-variable]

Cc: Jouni Malinen <j@w1.fi>
Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200819072402.3085022-12-lee.jones@linaro.org
drivers/net/wireless/intersil/hostap/hostap_ap.c