wifi: lib80211: remove unused variables iv32 and iv16
authorTom Rix <trix@redhat.com>
Wed, 17 May 2023 12:33:10 +0000 (08:33 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 13 Sep 2023 10:33:58 +0000 (12:33 +0200)
commite04b1973e2ab1e58a79156317b0dc25f848efdc5
treed97835cb6e8fe602922a9fd418770d864439f51f
parent2400dfe23fa91612c18c6c8d8a5b8164ff98836c
wifi: lib80211: remove unused variables iv32 and iv16

clang with W=1 reports
net/wireless/lib80211_crypt_tkip.c:667:7: error: variable 'iv32'
  set but not used [-Werror,-Wunused-but-set-variable]
                u32 iv32 = tkey->tx_iv32;
                    ^
This variable not used so remove it.
Then remove a similar iv16 variable.
Change the comment because the unmodified value is returned.

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230517123310.873023-1-trix@redhat.com
[change commit log wrt. 'length', add comment in the code]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/lib80211_crypt_tkip.c