summaryrefslogtreecommitdiff
path: root/drivers/staging/ks7010
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2017-04-27 11:25:13 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-28 11:45:49 +0200
commit69f3fecc49cabaadf4839dda4227427fc15b4c7e (patch)
treec3a94d6f54890c0e06c76cec574d807fcae97f34 /drivers/staging/ks7010
parent208c66f2fb3d9cd398386785aae116753a27e8c4 (diff)
staging: ks7010: remove unused local variable eap_key
Code declares and assigns to a local variable that is never used, it can be safely removed. Remove unused local variable. Signed-off-by: Tobin C. Harding <me@tobin.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010')
-rw-r--r--drivers/staging/ks7010/ks_hostif.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 2216409bcb3d..fbebe22caa51 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -399,7 +399,6 @@ void hostif_data_indication(struct ks_wlan_private *priv)
struct ether_hdr *eth_hdr;
unsigned short eth_proto;
struct ieee802_1x_hdr *aa1x_hdr;
- struct wpa_eapol_key *eap_key;
int ret;
DPRINTK(3, "\n");
@@ -456,10 +455,8 @@ void hostif_data_indication(struct ks_wlan_private *priv)
aa1x_hdr = (struct ieee802_1x_hdr *)(priv->rxp + 20);
if (aa1x_hdr->type == IEEE802_1X_TYPE_EAPOL_KEY &&
- priv->wpa.rsn_enabled) {
- eap_key = (struct wpa_eapol_key *)(aa1x_hdr + 1);
+ priv->wpa.rsn_enabled)
atomic_set(&priv->psstatus.snooze_guard, 1);
- }
/* rx indication */
skb->dev = priv->net_dev;
@@ -487,10 +484,8 @@ void hostif_data_indication(struct ks_wlan_private *priv)
aa1x_hdr = (struct ieee802_1x_hdr *)(priv->rxp + 14);
if (aa1x_hdr->type == IEEE802_1X_TYPE_EAPOL_KEY &&
- priv->wpa.rsn_enabled) {
- eap_key = (struct wpa_eapol_key *)(aa1x_hdr + 1);
+ priv->wpa.rsn_enabled)
atomic_set(&priv->psstatus.snooze_guard, 1);
- }
/* rx indication */
skb->dev = priv->net_dev;