Commit 15fc3e4a authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d8353a75
...@@ -354,7 +354,6 @@ void hostif_data_indication(struct ks_wlan_private *priv) ...@@ -354,7 +354,6 @@ void hostif_data_indication(struct ks_wlan_private *priv)
u16 auth_type; u16 auth_type;
unsigned char temp[256]; unsigned char temp[256];
struct ether_hdr *eth_hdr; struct ether_hdr *eth_hdr;
unsigned short eth_proto;
struct ieee802_1x_hdr *aa1x_hdr; struct ieee802_1x_hdr *aa1x_hdr;
size_t size; size_t size;
int ret; int ret;
...@@ -369,7 +368,6 @@ void hostif_data_indication(struct ks_wlan_private *priv) ...@@ -369,7 +368,6 @@ void hostif_data_indication(struct ks_wlan_private *priv)
get_word(priv); /* Reserve Area */ get_word(priv); /* Reserve Area */
eth_hdr = (struct ether_hdr *)(priv->rxp); eth_hdr = (struct ether_hdr *)(priv->rxp);
eth_proto = ntohs(eth_hdr->h_proto);
/* source address check */ /* source address check */
if (ether_addr_equal(&priv->eth_addr[0], eth_hdr->h_source)) { if (ether_addr_equal(&priv->eth_addr[0], eth_hdr->h_source)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment