From: Pkshih <pkshih@realtek.com>
To: "yuehaibing@huawei.com" <yuehaibing@huawei.com>,
"kvalo@codeaurora.org" <kvalo@codeaurora.org>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH] rtlwifi: remove set but not used variable 'cmd_seq'
Date: Wed, 30 Jan 2019 01:31:54 +0000 [thread overview]
Message-ID: <1548811903.17195.1.camel@realtek.com> (raw)
In-Reply-To: <e37bae9c-c920-56cf-7813-0004c017f02a@huawei.com>
On Tue, 2019-01-29 at 14:03 +0800, YueHaibing wrote:
> +cc netdev@vger.kernel.org
>
> On 2019/1/29 13:57, YueHaibing wrote:
> > ping...
> >
> > On 2018/9/11 20:12, YueHaibing wrote:
> >> Fixes gcc '-Wunused-but-set-variable' warning:
> >>
> >> drivers/net/wireless/realtek/rtlwifi/base.c: In function
> 'rtl_c2h_content_parsing':
> >> drivers/net/wireless/realtek/rtlwifi/base.c:2313:13: warning:
> >> variable 'cmd_seq' set but not used [-Wunused-but-set-variable]
> >>
> >> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Thanks for your fix.
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
> >> ---
> >> drivers/net/wireless/realtek/rtlwifi/base.c | 3 +--
> >> 1 file changed, 1 insertion(+), 2 deletions(-)
> >>
> >> diff --git a/drivers/net/wireless/realtek/rtlwifi/base.c
> b/drivers/net/wireless/realtek/rtlwifi/base.c
> >> index f4122c8..92b6918 100644
> >> --- a/drivers/net/wireless/realtek/rtlwifi/base.c
> >> +++ b/drivers/net/wireless/realtek/rtlwifi/base.c
> >> @@ -2310,11 +2310,10 @@ static void rtl_c2h_content_parsing(struct
> ieee80211_hw *hw,
> >> struct rtl_priv *rtlpriv = rtl_priv(hw);
> >> struct rtl_hal_ops *hal_ops = rtlpriv->cfg->ops;
> >> const struct rtl_btc_ops *btc_ops = rtlpriv->btcoexist.btc_ops;
> >> - u8 cmd_id, cmd_seq, cmd_len;
> >> + u8 cmd_id, cmd_len;
> >> u8 *cmd_buf = NULL;
> >>
> >> cmd_id = GET_C2H_CMD_ID(skb->data);
> >> - cmd_seq = GET_C2H_SEQ(skb->data);
> >> cmd_len = skb->len - C2H_DATA_OFFSET;
> >> cmd_buf = GET_C2H_DATA_PTR(skb->data);
> >>
> >>
> >> .
>
next prev parent reply other threads:[~2019-01-30 1:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1536667978-10556-1-git-send-email-yuehaibing@huawei.com>
2018-09-12 5:48 ` [PATCH] rtlwifi: remove set but not used variable 'cmd_seq' Pkshih
2019-01-29 5:57 ` YueHaibing
2019-01-29 6:03 ` YueHaibing
2019-01-30 1:31 ` Pkshih [this message]
2019-01-30 10:47 ` Kalle Valo
2019-01-31 1:53 ` YueHaibing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1548811903.17195.1.camel@realtek.com \
--to=pkshih@realtek.com \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=yuehaibing@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.