aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Horman <[email protected]>2024-08-21 16:42:50 +0100
committerGreg Kroah-Hartman <[email protected]>2024-08-22 15:47:08 +0800
commit5f1a6826ea4900f8540d5eeb29f97796860f2d08 (patch)
tree01a7af5bbd4abb652cebf6909cd62711fa70a8c2
parentc6fd8c872632e4da393314ffbd0cff8179f78d8a (diff)
staging: rtl8192e: remove set but otherwise unused local variable iv32
Remove iv32 from rtllib_tkip_get_key() as it is set but otherwise unused. Flagged by allmodconfig W=1 builds with gcc-13 and clang-18. Compile tested only. 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 dc0917b03511..31eff306e8aa 100644
--- a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c
+++ b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c
@@ -638,10 +638,7 @@ 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;
- u32 iv32 = tkey->tx_iv32;
- if (iv16 == 0)
- iv32--;
iv16--;
seq[0] = tkey->tx_iv16;
seq[1] = tkey->tx_iv16 >> 8;