Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3568314ybl; Sun, 25 Aug 2019 19:17:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnwKc2t9X9z3PpTcHvaCd70qeWqUCSxXgwMTPXchofvkpMGlAFjlSxE/AcEpn6FWLiPxL+ X-Received: by 2002:a17:90a:b884:: with SMTP id o4mr17285274pjr.52.1566785820805; Sun, 25 Aug 2019 19:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566785820; cv=none; d=google.com; s=arc-20160816; b=PQkrbJ+TxGDKMElUZsxh2G8pPHC0hXM3sK3p1zVJ3Faba64X8SYZarUODjic0UUkdr GKMVbtxO++FUApbstOQzSkFCUg/kN2Jcp0ITooZ+uvJ9EhtFu9t/c8EDRmD8chMdj2rN zWGRL9mMvsvn95UZDX/q4vvCgf+Wg8YP4mQKt6+h2wwfYYtqD64NWbXQIIXw2WUrvQde lC8nrPurwDJare9As2iJBL14UOOrXCGFHtTgP/dcxQ+oBwIqwQ/dpA4L/G4GO4wS9ZcT 4p1eGuurnohW0Hmhkoab+BJ2ZsSgzgh9ASRZm+dufl5qf97P4M7wdLIiCgrTs5jNgnNT jfDw== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=ObIn2n/VB0/YxkmdkxIKEzyF3EyeMFPfYAZ1qx360AI=; b=PlOzRxvvyuHBbVqh/0lxNZwgmQ434SRKmXVYqtNd0fEnrAa40ryOj5G10LejKvsq/Z xilvbQ9iZpb+1BRZjEEybJpIa1FaEGobhYzE8BffxfFz3/TD3z1VC3jOy4D+n6gwP2Ne tLo4RtSYPGXjHe6ORoZDXsa4niRKRcS/ryjSkBhXN2lBgwKNQmZs27NvPqESXjU3rV6U rq18WkwpXnLsDWVpUBnkR8f0+V+diLKzwLPe3Z8ZkF9qc7XnV6QthvxaFZa1HWUiMoax 234jQaXht5KQ3Fm0WYGcZHsHCLy5VbLcQ3cE5k6EinWBHLDPhvhc3E3KzNZgtifY3qS4 CT3w== 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 124si7755746pgd.142.2019.08.25.19.16.43; Sun, 25 Aug 2019 19:17:00 -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 S1729124AbfHZCGs (ORCPT + 99 others); Sun, 25 Aug 2019 22:06:48 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:57746 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726552AbfHZCGs (ORCPT ); Sun, 25 Aug 2019 22:06:48 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 3B3FA14C36B36; Sun, 25 Aug 2019 19:06:47 -0700 (PDT) Date: Sun, 25 Aug 2019 19:06:43 -0700 (PDT) Message-Id: <20190825.190643.573913079872386152.davem@davemloft.net> To: maowenan@huawei.com Cc: nbd@openwrt.org, john@phrozen.org, sean.wang@mediatek.com, nelson.chang@mediatek.com, matthias.bgg@gmail.com, kernel-janitors@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 -next] net: mediatek: remove set but not used variable 'status' From: David Miller In-Reply-To: <20190826013118.22720-1-maowenan@huawei.com> References: <20190824.142158.1506174328495468705.davem@davemloft.net> <20190826013118.22720-1-maowenan@huawei.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 25 Aug 2019 19:06:47 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mao Wenan Date: Mon, 26 Aug 2019 09:31:18 +0800 > 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] > > Fixes: 296c9120752b ("net: ethernet: mediatek: Add MT7628/88 SoC support") > Signed-off-by: Mao Wenan Are you sure the register isn't being read in order to make some hardware side effect happen? Have you tested this on effected hardware? I'm not applying this without definitive answers to these questions.