From patchwork Tue Jun 1 07:56:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zheng Yongjun X-Patchwork-Id: 12290643 X-Patchwork-Delegate: kuba@kernel.org 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=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 C38AFC4708F for ; Tue, 1 Jun 2021 07:56:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A71E7613AB for ; Tue, 1 Jun 2021 07:56:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233237AbhFAH5v (ORCPT ); Tue, 1 Jun 2021 03:57:51 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3490 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233142AbhFAH5u (ORCPT ); Tue, 1 Jun 2021 03:57:50 -0400 Received: from dggeme761-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FvPY00Zb1zYptK; Tue, 1 Jun 2021 15:53:24 +0800 (CST) Received: from dggeme760-chm.china.huawei.com (10.3.19.106) by dggeme761-chm.china.huawei.com (10.3.19.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 1 Jun 2021 15:56:07 +0800 Received: from dggeme760-chm.china.huawei.com ([10.6.80.70]) by dggeme760-chm.china.huawei.com ([10.6.80.70]) with mapi id 15.01.2176.012; Tue, 1 Jun 2021 15:56:07 +0800 From: zhengyongjun To: "davem@davemloft.net" , "kuba@kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "jdmason@kudzu.us" Subject: =?utf-8?q?=E7=AD=94=E5=A4=8D=3A_=5BPATCH_net-next=5D_net=3A_vxge=3A?= =?utf-8?q?_Remove_unused_variable?= Thread-Topic: [PATCH net-next] net: vxge: Remove unused variable Thread-Index: AQHXVriJvWdEYw7g0E2WJNfgON0Jh6r+yX2Q Date: Tue, 1 Jun 2021 07:56:07 +0000 Message-ID: <937ae366ecb54612a05fec858a3b5418@huawei.com> References: <20210601074744.4079327-1-zhengyongjun3@huawei.com> In-Reply-To: <20210601074744.4079327-1-zhengyongjun3@huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.176.64] MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch should meld into patch I send before, so please ignore this patch, thank you :) -----邮件原件----- 发件人: zhengyongjun 发送时间: 2021年6月1日 15:48 收件人: davem@davemloft.net; kuba@kernel.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org 抄送: jdmason@kudzu.us; zhengyongjun 主题: [PATCH net-next] net: vxge: Remove unused variable Removes this annoying warning: drivers/net/ethernet/neterion/vxge/vxge-main.c:1609:22: warning: unused variable ‘status’ [-Wunused-variable] 1609 | enum vxge_hw_status status; Signed-off-by: Zheng Yongjun --- drivers/net/ethernet/neterion/vxge/vxge-main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c index 21bc4d6662e4..297bce5f635f 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-main.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c @@ -1606,7 +1606,6 @@ static void vxge_config_ci_for_tti_rti(struct vxgedev *vdev) static int do_vxge_reset(struct vxgedev *vdev, int event) { - enum vxge_hw_status status; int ret = 0, vp_id, i; vxge_debug_entryexit(VXGE_TRACE, "%s:%d", __func__, __LINE__); -- 2.25.1