]> www.infradead.org Git - linux.git/commitdiff
staging: rtl8192e: remove set but otherwise unused local variable iv16
authorSimon Horman <horms@kernel.org>
Fri, 23 Aug 2024 17:26:27 +0000 (18:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Aug 2024 05:42:44 +0000 (13:42 +0800)
Since the commit 5f1a6826ea49 ("staging: rtl8192e: remove set but
otherwise unused local variable iv32"), the local variable iv16 is set
but otherwise unused. So remove it.

Compile tested only.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202408232049.UJef268y-lkp@intel.com/
Signed-off-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240823-rtl8192e-iv16-v1-1-000702673065@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_crypt_tkip.c

index 31eff306e8aaaae653b9ab28037ae38570e1ce6f..fb80ae6c3f2feaf57629a927ae86b962c25824a8 100644 (file)
@@ -637,9 +637,6 @@ static int rtllib_tkip_get_key(void *key, int len, u8 *seq, void *priv)
 
        if (seq) {
                /* Return the sequence number of the last transmitted frame. */
-               u16 iv16 = tkey->tx_iv16;
-
-               iv16--;
                seq[0] = tkey->tx_iv16;
                seq[1] = tkey->tx_iv16 >> 8;
                seq[2] = tkey->tx_iv32;