[<prev] [next>] [day] [month] [year] [list]
Message-ID: <8a827e79-ddd0-da00-6a16-d2b6e8809f51@huawei.com>
Date: Sat, 1 Sep 2018 15:21:07 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: Kalle Valo <kvalo@...eaurora.org>,
Pavani Muthyala <pavani.muthyala@...pinesignals.com>,
Kees Cook <keescook@...omium.org>,
Colin Ian King <colin.king@...onical.com>,
Amitkumar Karwar <amit.karwar@...pinesignals.com>,
Prameela Rani Garnepudi <prameela.j04cs@...il.com>,
Siva Rebbagondla <siva.rebbagondla@...pinesignals.com>,
Sushant Kumar Mishra <sushant.mishra@...pinesignals.com>
CC: <linux-wireless@...r.kernel.org>, <netdev@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>
Subject: Re: [PATCH v3] rsi: remove set but not used variables 'header_size'
and 'tx_params'
On 2018/9/1 15:16, YueHaibing wrote:
> 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]
>
> 'tx_params' only used for 'header_size' dereferencedï¼Oso also
sorry..., there is some messy code, Also missing changelog, I'll fix.
> can be removed.
>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
> ---
> drivers/net/wireless/rsi/rsi_91x_hal.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/net/wireless/rsi/rsi_91x_hal.c b/drivers/net/wireless/rsi/rsi_91x_hal.c
> index 01edf96..182b066 100644
> --- a/drivers/net/wireless/rsi/rsi_91x_hal.c
> +++ b/drivers/net/wireless/rsi/rsi_91x_hal.c
> @@ -282,10 +282,8 @@ int rsi_send_data_pkt(struct rsi_common *common, struct sk_buff *skb)
> struct rsi_hw *adapter = common->priv;
> struct ieee80211_vif *vif;
> struct ieee80211_tx_info *info;
> - struct skb_info *tx_params;
> struct ieee80211_bss_conf *bss;
> int status = -EINVAL;
> - u8 header_size;
>
> if (!skb)
> return 0;
> @@ -297,8 +295,6 @@ int rsi_send_data_pkt(struct rsi_common *common, struct sk_buff *skb)
> goto err;
> 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)) &&
>
>
> .
>
Powered by blists - more mailing lists