Received: by 2002:a4a:3008:0:0:0:0:0 with SMTP id q8-v6csp874435oof; Wed, 19 Sep 2018 07:54:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbBEzuBDwnsdh3YabjitFBK+XG8eYwj/0iIIfg6BwbPKEOyyZwrsJEGBJZjkT1aGvOm09Ws X-Received: by 2002:a17:902:708a:: with SMTP id z10-v6mr35360210plk.229.1537368872106; Wed, 19 Sep 2018 07:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537368872; cv=none; d=google.com; s=arc-20160816; b=nFUgjpXGo4+uThSsmsMyIX8Nm8pr8W+8Uv6RZaUfWt8AXaVaP/NeUUwWC8upMpP0Nw 0D0mFP7LPrdK5j4P+6RBWHUuh+T+m9hC6gKVwbomy+LDtghYQSjn4ZFalUF6DPDQRTui cuwTijfRC1YrFt/IehDgRMN9hjyTQYaonJyc3WY/E9lud23qFmprKfUBP/shcrx5c6G0 nh+Dejz6EnjdbMcv4PROn9bS5xSsDiCDaTTNIfoexfirCSAN40TwaoY6mgWA6ZTi15WU 8ZUwCeNv8NTbUQNvpVNbDeG1uc/ugS8us//BEYpBTY2DiEOj5VVvpFiMNOFT6iQMXttw 7Bkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=x40A52mgkiqnNUragyaOZcwJ181SYkNPI86rJNtg7AQ=; b=BBNBRvKG9odYjoq7cO/nVPoKWwg+OgC+YI3Sv5K/S3K8GYhu+waJkMrI1+gZK5uQXl dp26YB9kTWQeviXzMq0ZH6Y7tVEF+VWS7F0KIKL89Cb+DqNo5ZXvxJ0SJyOmuXIR/plg AlGiVowGQQGtSErKDsE63zCd1wEZnl1F2QC42qMAtAIzjWkJSS9/UNtYUZvx7Hoa3azf W8NOUsyoWLUUUKeZAgPCiM+f1Q/qTixSw0iOAk6D3Vjyc4/ZTziN3fn60vwW+YA8Jzxz 0SmLodOJUEwDp5UCCsS7HhZuKcWWqdTjhZJptsmGFp2Kr64fMXA0atKsTW3x9Nl/tqIZ DbRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b61-v6si23384128plc.499.2018.09.19.07.54.15; Wed, 19 Sep 2018 07:54:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731993AbeISUcZ (ORCPT + 99 others); Wed, 19 Sep 2018 16:32:25 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43487 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731421AbeISUcZ (ORCPT ); Wed, 19 Sep 2018 16:32:25 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 1CB7FCA84F34A; Wed, 19 Sep 2018 22:53:58 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.399.0; Wed, 19 Sep 2018 22:53:58 +0800 From: zhong jiang To: CC: , , , Subject: [PATCH] ieee802154: remove a redundant local variable 'i' Date: Wed, 19 Sep 2018 22:41:37 +0800 Message-ID: <1537368097-60101-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The local variable 'i' is never used after being assigned. hence it should be redundant adn can be removed. Signed-off-by: zhong jiang --- 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