aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Horman <[email protected]>2024-08-23 18:26:27 +0100
committerGreg Kroah-Hartman <[email protected]>2024-08-24 13:42:44 +0800
commitb0b79119cea2dd0d4bbfafc7c0f41d42edb41466 (patch)
tree4f66d18063efa966a43a44b6c6632f5ca59f5bc9
parent5315266844ea3b0b8b6be9842d5901e439fa838a (diff)
staging: rtl8192e: remove set but otherwise unused local variable iv16
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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/rtl8192e/rtllib_crypt_tkip.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c
index 31eff306e8aa..fb80ae6c3f2f 100644
--- a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c
+++ b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c
@@ -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;