From: Johan Hedberg <johan.hedberg@gmail.com>
To: YueHaibing <yuehaibing@huawei.com>
Cc: marcel@holtmann.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, davem@davemloft.net,
linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: remove redundant variables 'adv_set' and 'cp'
Date: Mon, 6 Aug 2018 17:09:22 +0300 [thread overview]
Message-ID: <20180806140922.GA18195@x1c.home> (raw)
In-Reply-To: <20180806110851.8568-1-yuehaibing@huawei.com>
Hi YueHaibing,
On Mon, Aug 06, 2018, YueHaibing wrote:
> Variables 'adv_set' and 'cp' are being assigned but are never used hence
> they are redundant and can be removed.
>
> Cleans up clang warnings:
> net/bluetooth/hci_event.c:1135:29: warning: variable 'adv_set' set but not used [-Wunused-but-set-variable]
> net/bluetooth/mgmt.c:3359:39: warning: variable 'cp' set but not used [-Wunused-but-set-variable]
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
> net/bluetooth/hci_event.c | 3 ---
> net/bluetooth/mgmt.c | 3 ---
> 2 files changed, 6 deletions(-)
Applied to bluetooth-next. Thanks.
Johan
prev parent reply other threads:[~2018-08-06 14:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-06 11:08 [PATCH] Bluetooth: remove redundant variables 'adv_set' and 'cp' YueHaibing
2018-08-06 14:09 ` Johan Hedberg [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=20180806140922.GA18195@x1c.home \
--to=johan.hedberg@gmail.com \
--cc=davem@davemloft.net \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.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 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).