Re: [PATCH] lib80211: remove unused variables iv32 and iv16

From: Simon Horman
Date: Wed May 17 2023 - 11:12:16 EST


On Wed, May 17, 2023 at 08:33:10AM -0400, Tom Rix wrote:
> 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.
> Remove the comment because the length is returned.
>
> Signed-off-by: Tom Rix <trix@xxxxxxxxxx>

Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx>