From: Colin Ian King Date: Mon, 7 Mar 2022 14:36:25 +0000 (+0000) Subject: staging: vt6655: remove redundant assignment of pointer tx_key X-Git-Tag: v6.6.17~7876^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a51c297f8ffd1621828b856ab89f01d1a2eec81;p=platform%2Fkernel%2Flinux-rpi.git staging: vt6655: remove redundant assignment of pointer tx_key Pointer tx_key is being assigned a value that is never read, it is being re-assigned a new value later. The assignment is redundant and can be removed. Cleans up clan scan build warning: drivers/staging/vt6655/rxtx.c:1311:3: warning: Value stored to 'tx_key' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King Link: https://lore.kernel.org/r/20220307143625.136189-1-colin.i.king@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 0de801b..53506e2 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -1308,8 +1308,6 @@ int vnt_generate_fifo_header(struct vnt_private *priv, u32 dma_idx, cpu_to_le16(ieee80211_get_hdrlen_from_skb(skb) << 10); if (info->control.hw_key) { - tx_key = info->control.hw_key; - switch (info->control.hw_key->cipher) { case WLAN_CIPHER_SUITE_WEP40: case WLAN_CIPHER_SUITE_WEP104: