netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rsi: remove set but not used variable 'header_size'
@ 2018-08-31  9:27 YueHaibing
  2018-08-31 11:07 ` YueHaibing
       [not found] ` <1535786170-169698-1-git-send-email-yuehaibing@huawei.com>
  0 siblings, 2 replies; 5+ messages in thread
From: YueHaibing @ 2018-08-31  9:27 UTC (permalink / raw)
  To: Kalle Valo, Pavani Muthyala, Kees Cook, Colin Ian King,
	Amitkumar Karwar, Prameela Rani Garnepudi, Siva Rebbagondla,
	Sushant Kumar Mishra
  Cc: YueHaibing, linux-wireless, netdev, kernel-janitors

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/wireless/rsi/rsi_91x_hal.c: In function 'rsi_send_data_pkt':
drivers/net/wireless/rsi/rsi_91x_hal.c:288:5: warning:
 variable 'header_size' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/net/wireless/rsi/rsi_91x_hal.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/wireless/rsi/rsi_91x_hal.c b/drivers/net/wireless/rsi/rsi_91x_hal.c
index 01edf96..c4fb319 100644
--- a/drivers/net/wireless/rsi/rsi_91x_hal.c
+++ b/drivers/net/wireless/rsi/rsi_91x_hal.c
@@ -285,7 +285,6 @@ int rsi_send_data_pkt(struct rsi_common *common, struct sk_buff *skb)
 	struct skb_info *tx_params;
 	struct ieee80211_bss_conf *bss;
 	int status = -EINVAL;
-	u8 header_size;
 
 	if (!skb)
 		return 0;
@@ -298,7 +297,6 @@ int rsi_send_data_pkt(struct rsi_common *common, struct sk_buff *skb)
 	vif = info->control.vif;
 	bss = &vif->bss_conf;
 	tx_params = (struct skb_info *)info->driver_data;
-	header_size = tx_params->internal_hdr_size;
 
 	if (((vif->type == NL80211_IFTYPE_STATION) ||
 	     (vif->type == NL80211_IFTYPE_P2P_CLIENT)) &&

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

end of thread, other threads:[~2018-09-04 12:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-31  9:27 [PATCH] rsi: remove set but not used variable 'header_size' YueHaibing
2018-08-31 11:07 ` YueHaibing
     [not found] ` <1535786170-169698-1-git-send-email-yuehaibing@huawei.com>
     [not found]   ` <1535786170-169698-1-git-send-email-yuehaibing-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2018-09-01  7:21     ` [PATCH v3] rsi: remove set but not used variables 'header_size' and 'tx_params' YueHaibing
2018-09-01  7:48     ` [PATCH v4] " YueHaibing
2018-09-04  8:17       ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).