From patchwork Thu Mar 25 09:31:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qiheng Lin X-Patchwork-Id: 12163629 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 362ABC433C1 for ; Thu, 25 Mar 2021 09:40:31 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D9D061934 for ; Thu, 25 Mar 2021 09:40:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D9D061934 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=VsfJST026b8XovC83iYfX3fSOC50T7+oOyQoUiEkgmQ=; b=EhuGPUdMP0NScVgOr+nPmND5zt tDMZP5I/cxR9qrt93YS87iYno3UDdfrdEkjboHRFFhX18c20+wLb9QBXVDFSeNTm3o9+8ARwnkYgY yRzW0h9OzMvDAHFPWVRwL2T9wPJwajzeVrB0q87hHSGbIxI20eekYzNKP6A0quTFnuKNZdgI+fDxx d5SuBc5Zfn1rhtFnmDwgme0RssefbMcZjegp3dKIYx3Mz8Dg6/8I8G/unNULbWRmaGbARJyp+5EOv 2E6QJfv7ydQj2aTleuOQLLfeptxCzHTRSpxYPO4AvULTaVl5w7liJGnIsd3bs/vN8U5vBzK5CV6xA PbV/ckRQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lPMQ8-0016zV-Ch; Thu, 25 Mar 2021 09:36:52 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lPMLh-0016BN-33; Thu, 25 Mar 2021 09:32:19 +0000 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F5fvM0CJMzPlJ7; Thu, 25 Mar 2021 17:29:35 +0800 (CST) Received: from DESKTOP-EFRLNPK.china.huawei.com (10.174.177.129) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Thu, 25 Mar 2021 17:32:00 +0800 From: Qiheng Lin To: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Jakub Kicinski , Matthias Brugger CC: Qiheng Lin , , , , , Hulk Robot Subject: [PATCH net-next] net: ethernet: mtk_eth_soc: remove unused variable 'count' Date: Thu, 25 Mar 2021 17:31:51 +0800 Message-ID: <20210325093151.5913-1-linqiheng@huawei.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 X-Originating-IP: [10.174.177.129] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210325_093217_731706_EEC12111 X-CRM114-Status: GOOD ( 11.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org GCC reports the following warning with W=1: drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c:80:9: warning: variable 'count' set but not used [-Wunused-but-set-variable] 80 | int i, count; | ^~~~~ This variable is not used in function , this commit remove it to fix the warning. Reported-by: Hulk Robot Signed-off-by: Qiheng Lin --- drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c b/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c index 8ae9efab6d02..98b1d3577bcd 100644 --- a/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c +++ b/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c @@ -77,9 +77,9 @@ static int mtk_ppe_debugfs_foe_show(struct seq_file *m, void *private, bool bind) { struct mtk_ppe *ppe = m->private; - int i, count; + int i; - for (i = 0, count = 0; i < MTK_PPE_ENTRIES; i++) { + for (i = 0; i < MTK_PPE_ENTRIES; i++) { struct mtk_foe_entry *entry = &ppe->foe_table[i]; struct mtk_foe_mac_info *l2; struct mtk_flow_addr_info ai = {};