From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net: mscc: ocelot: remove set but not used variable 'phy_mode' Date: Mon, 08 Oct 2018 11:04:26 -0700 (PDT) Message-ID: <20181008.110426.490149828698716497.davem@davemloft.net> References: <1539007670-82488-1-git-send-email-yuehaibing@huawei.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: alexandre.belloni@bootlin.com, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org To: yuehaibing@huawei.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:57560 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726291AbeJIBRV (ORCPT ); Mon, 8 Oct 2018 21:17:21 -0400 In-Reply-To: <1539007670-82488-1-git-send-email-yuehaibing@huawei.com> Sender: netdev-owner@vger.kernel.org List-ID: From: YueHaibing Date: Mon, 8 Oct 2018 14:07:50 +0000 > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/ethernet/mscc/ocelot_board.c: In function 'mscc_ocelot_probe': > drivers/net/ethernet/mscc/ocelot_board.c:262:17: warning: > variable 'phy_mode' set but not used [-Wunused-but-set-variable] > enum phy_mode phy_mode; > > It never used since introduction in > commit 71e32a20cfbf ("net: mscc: ocelot: make use of SerDes PHYs for handling their configuration") > > Signed-off-by: YueHaibing Applied.