From: Kalle Valo <kvalo@codeaurora.org>
To: Zheng Yongjun <zhengyongjun3@huawei.com>
Cc: <Jes.Sorensen@gmail.com>, <davem@davemloft.net>,
<linux-wireless@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<zhengyongjun3@huawei.com>, Hulk Robot <hulkci@huawei.com>
Subject: Re: [PATCH] rtl8xxxu: Remove set but not used variable 'rsr'
Date: Fri, 15 Nov 2019 12:24:27 +0000 (UTC) [thread overview]
Message-ID: <20191115122427.E453960E0D@smtp.codeaurora.org> (raw)
In-Reply-To: <20191110104955.131246-1-zhengyongjun3@huawei.com>
Zheng Yongjun <zhengyongjun3@huawei.com> wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function rtl8xxxu_gen2_config_channel:
> drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:1266:13: warning: variable rsr set but not used [-Wunused-but-set-variable]
>
> rsr is never used, so remove it.
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
> Reviewed-by: Chris Chiu <chiu@endlessm.com>
Patch applied to wireless-drivers-next.git, thanks.
38860bdf28b7 rtl8xxxu: Remove set but not used variable 'rsr'
--
https://patchwork.kernel.org/patch/11236191/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
prev parent reply other threads:[~2019-11-15 12:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-10 10:49 [PATCH] rtl8xxxu: Remove set but not used variable 'rsr' Zheng Yongjun
2019-11-12 2:28 ` Chris Chiu
2019-11-15 12:24 ` Kalle Valo [this message]
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=20191115122427.E453960E0D@smtp.codeaurora.org \
--to=kvalo@codeaurora.org \
--cc=Jes.Sorensen@gmail.com \
--cc=davem@davemloft.net \
--cc=hulkci@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=zhengyongjun3@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 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).