Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220307143625.136189-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
4a51c297 8d6319cd

-2
-2
drivers/staging/vt6655/rxtx.c
··· 1308 1308 cpu_to_le16(ieee80211_get_hdrlen_from_skb(skb) << 10); 1309 1309 1310 1310 if (info->control.hw_key) { 1311 - tx_key = info->control.hw_key; 1312 - 1313 1311 switch (info->control.hw_key->cipher) { 1314 1312 case WLAN_CIPHER_SUITE_WEP40: 1315 1313 case WLAN_CIPHER_SUITE_WEP104: