Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp561048ybl; Thu, 22 Aug 2019 01:06:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlIjxmCW1LHukm/qgVO0sQGiyy3ZgDaSbP8/Cn/mlZ35gFgch0WzqEuahY756x3MAEmEeg X-Received: by 2002:a17:90a:8081:: with SMTP id c1mr4239918pjn.62.1566461208156; Thu, 22 Aug 2019 01:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566461208; cv=none; d=google.com; s=arc-20160816; b=WCc3A0uW2r/AUzET5D1uX7EhBmTkrhRdEVQY7nOjPJ6dseCAdN1xJjRPbUcgR2MsSd E2dYJig662+5kPtm4+aRAViO3Ou4CNIYQy2qeGv9T31gy4/JY0LffHJ+yNtRuRGJxLeB 624dhx23QCCrW3MZ9NBauwykBYXo4xioPtpkyr0Z7IyLSDCwLEnWWsudNmNAP+xx+Anm FPpwwzvVVZYVPG2XyFSoe8FwXdlD/pJdYlkkZYmbFXQdorCe6pFNRx0mmE+Yh4uhUW3T 07GfiU5BgNcWNB0jEuVreGhT/KQkLLTiyityM+55tb00hgwMjoXG8bI5h+8A/FomCxBI bCtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=VeRcHgYykDqIeVLMq60HRDx18eLbozOro6jblqPVy14=; b=ALZAOo8NHcabZU5FS7IT9oUj2nrqNSdZsfwguhLNPa60J1F5Kpciq4RMZY2w6ixfnu 9bGiSjlBVV3iVwKZq8OiMd+OmDobR5/1V6mmDfD1aNU5cqiN+OWMj+E1lSYaRCTEk9Fl MESxni0R8YwbD4wVm3TaknMQmc9WIqqVCdjeNRL9sgf1mtC7oiKOHhqC8W+wsf+oKP9t lzqHWrXwfhwMfyhFizNU1E7j1KydSxqlArmR+SdJJbN5TVBqAVvzbjNP753WN1qm6OxM m5JlJmBH5qS+gLXen97//Yzd5bmLAl1FFKLwVZ2WouI828B+lJn+PUko4xgBw8+Ou+Me 9npQ== 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 b13si7661497plz.403.2019.08.22.01.06.32; Thu, 22 Aug 2019 01:06:48 -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 S1731699AbfHVG06 (ORCPT + 99 others); Thu, 22 Aug 2019 02:26:58 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47390 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729284AbfHVG05 (ORCPT ); Thu, 22 Aug 2019 02:26:57 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 28306DB23BC640D10BF3; Thu, 22 Aug 2019 14:26:49 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Thu, 22 Aug 2019 14:26:42 +0800 From: Mao Wenan To: , , , , , CC: , , , , Mao Wenan Subject: [PATCH -next] net: mediatek: remove set but not used variable 'status' Date: Thu, 22 Aug 2019 14:30:26 +0800 Message-ID: <20190822063026.70044-1-maowenan@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function mtk_handle_irq: drivers/net/ethernet/mediatek/mtk_eth_soc.c:1951:6: warning: variable status set but not used [-Wunused-but-set-variable] It is not used since commit 296c9120752b ("net: ethernet: mediatek: Add MT7628/88 SoC support") Signed-off-by: Mao Wenan --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 8ddbb8d..bb7d623 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -1948,9 +1948,7 @@ static irqreturn_t mtk_handle_irq_tx(int irq, void *_eth) static irqreturn_t mtk_handle_irq(int irq, void *_eth) { struct mtk_eth *eth = _eth; - u32 status; - status = mtk_r32(eth, MTK_PDMA_INT_STATUS); if (mtk_r32(eth, MTK_PDMA_INT_MASK) & MTK_RX_DONE_INT) { if (mtk_r32(eth, MTK_PDMA_INT_STATUS) & MTK_RX_DONE_INT) mtk_handle_irq_rx(irq, _eth); -- 2.7.4