staging: rtl8192u: remove redundant assignment to pointer crypt
Subsystems (2)
PATCH 1/1 staging: rtl8192u: remove redundant assignment to pointer crypt
From: Colin Ian King <[email protected]>
The pointer crypt is being set with a value that is never read, the assignment is redundant and hence can be removed.
Thanks to Dan Carpenter for sanity checking that this was indeed redundant.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
--- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
@@ -743,7 +743,6 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *dif (ieee->short_slot && (ieee->current_network.capability &WLAN_CAPABILITY_SHORT_SLOT )) beacon_buf->capability |=cpu_to_le16 (WLAN_CAPABILITY_SHORT_SLOT ); - crypt = ieee->crypt[ieee->tx_keyidx];if (encrypt) beacon_buf->capability |=cpu_to_le16 (WLAN_CAPABILITY_PRIVACY );
Signature · 1 line
2.20.1
Quoted 10 lines · Colin King
From: Colin Ian King <[email protected]>
The pointer crypt is being set with a value that is never read, the assignment is redundant and hence can be removed.
Thanks to Dan Carpenter for sanity checking that this was indeed redundant.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
Thanks!
Reviewed-by Dan Carpenter <[email protected]>
regards,
dan carpenter