From: zhong jiang <zhongjiang@huawei.com>
To: <davem@davemloft.net>
Cc: <stefan@datenfreihafen.org>, <alex.aring@gmail.com>,
<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: [PATCH] ieee802154: remove a redundant local variable 'i'
Date: Wed, 19 Sep 2018 22:41:37 +0800 [thread overview]
Message-ID: <1537368097-60101-1-git-send-email-zhongjiang@huawei.com> (raw)
The local variable 'i' is never used after being assigned.
hence it should be redundant adn can be removed.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
net/ieee802154/nl802154.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/net/ieee802154/nl802154.c b/net/ieee802154/nl802154.c
index 99f6c25..5b90151 100644
--- a/net/ieee802154/nl802154.c
+++ b/net/ieee802154/nl802154.c
@@ -445,7 +445,6 @@ static int nl802154_send_wpan_phy(struct cfg802154_registered_device *rdev,
{
struct nlattr *nl_cmds;
void *hdr;
- int i;
hdr = nl802154hdr_put(msg, portid, seq, flags, cmd);
if (!hdr)
@@ -508,7 +507,6 @@ static int nl802154_send_wpan_phy(struct cfg802154_registered_device *rdev,
if (!nl_cmds)
goto nla_put_failure;
- i = 0;
#define CMD(op, n) \
do { \
if (rdev->ops->op) { \
--
1.7.12.4
next reply other threads:[~2018-09-19 14:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-19 14:41 zhong jiang [this message]
2018-09-27 14:47 ` Stefan Schmidt
2018-09-28 6:37 ` zhong jiang
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=1537368097-60101-1-git-send-email-zhongjiang@huawei.com \
--to=zhongjiang@huawei.com \
--cc=alex.aring@gmail.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=stefan@datenfreihafen.org \
/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
all inboxes | Powered by JetHome®