aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ks7010
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-11 11:59:11 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-11 13:12:34 +0200
commit15fc3e4a08872dafe0e4f32a8fda5694ee3a6f03 (patch)
tree133061bfded2bf9a0d138cf225d4d62f97a49cc3 /drivers/staging/ks7010
parentstaging: gdm724x: redundant variables idProduct and idVendor (diff)
downloadlinux-dev-15fc3e4a08872dafe0e4f32a8fda5694ee3a6f03.tar.xz
linux-dev-15fc3e4a08872dafe0e4f32a8fda5694ee3a6f03.zip
staging: ks7010: remove redundant variable eth_proto
Variable eth_proto is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'eth_proto' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010')
-rw-r--r--drivers/staging/ks7010/ks_hostif.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 0ecffab52ec2..a85975f63d26 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -354,7 +354,6 @@ void hostif_data_indication(struct ks_wlan_private *priv)
u16 auth_type;
unsigned char temp[256];
struct ether_hdr *eth_hdr;
- unsigned short eth_proto;
struct ieee802_1x_hdr *aa1x_hdr;
size_t size;
int ret;
@@ -369,7 +368,6 @@ void hostif_data_indication(struct ks_wlan_private *priv)
get_word(priv); /* Reserve Area */
eth_hdr = (struct ether_hdr *)(priv->rxp);
- eth_proto = ntohs(eth_hdr->h_proto);
/* source address check */
if (ether_addr_equal(&priv->eth_addr[0], eth_hdr->h_source)) {