All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: ks7010: remove redundant variable eth_proto
@ 2018-07-11 10:59 ` Colin King
  0 siblings, 0 replies; 9+ messages in thread
From: Colin King @ 2018-07-11 10:59 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Sergio Paracuellos, devel
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

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>
---
 drivers/staging/ks7010/ks_hostif.c | 2 --
 1 file changed, 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)) {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-03-19 13:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-11 10:59 [PATCH] staging: ks7010: remove redundant variable eth_proto Colin King
2018-07-11 10:59 ` Colin King
2019-03-18 10:57 ` [PATCH] staging: ks7010: remove redundant auth_type check Colin King
2019-03-18 10:57   ` Colin King
2019-03-18 21:32   ` Jeremy Sowden
2019-03-18 21:32     ` Jeremy Sowden
2019-03-19 13:29     ` Greg Kroah-Hartman
2019-03-19 13:29       ` Greg Kroah-Hartman
2019-03-19 13:51       ` Colin Ian King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.