summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192u
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-22 09:46:09 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-25 10:24:46 +0200
commit5e718a12e1a125045b451678faf6ceffc7591e3b (patch)
tree0c68bd9986b297b5c6741e4f5ecd64e7bf4ebcf9 /drivers/staging/rtl8192u
parent5ab706bd0bcaea0296426ecca333f69bad60d24e (diff)
downloadblackbird-op-linux-5e718a12e1a125045b451678faf6ceffc7591e3b.tar.gz
blackbird-op-linux-5e718a12e1a125045b451678faf6ceffc7591e3b.zip
staging: rtl8192u: remove redundant assignment to pointer crypt
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 <colin.king@canonical.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20190822084609.8971-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u')
-rw-r--r--drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
index e0da0900a4f7..33a6af7aad22 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
@@ -743,7 +743,6 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
if (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);
OpenPOWER on IntegriCloud