From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Zapolskiy Subject: [PATCH] net: ethernet: lpc_eth: remove unused local variable Date: Fri, 19 Oct 2018 02:06:53 +0300 Message-ID: <20181018230653.10637-1-vz@mleia.com> Cc: Sylvain Lemieux , netdev@vger.kernel.org To: "David S. Miller" Return-path: Received: from mleia.com ([178.79.152.223]:43296 "EHLO mail.mleia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725751AbeJSHKJ (ORCPT ); Fri, 19 Oct 2018 03:10:09 -0400 Sender: netdev-owner@vger.kernel.org List-ID: A trivial change which removes an unused local variable, the issue is reported as a compile time warning: drivers/net/ethernet/nxp/lpc_eth.c: In function 'lpc_eth_drv_probe': drivers/net/ethernet/nxp/lpc_eth.c:1250:21: warning: variable 'phydev' set but not used [-Wunused-but-set-variable] struct phy_device *phydev; ^~~~~~ Signed-off-by: Vladimir Zapolskiy --- drivers/net/ethernet/nxp/lpc_eth.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index 922b5b5b5c01..e275d64007af 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -1245,7 +1245,6 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) struct resource *res; struct net_device *ndev; struct netdata_local *pldat; - struct phy_device *phydev; dma_addr_t dma_handle; int irq, ret; u32 tmp; @@ -1411,8 +1410,6 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) netdev_info(ndev, "LPC mac at 0x%08x irq %d\n", res->start, ndev->irq); - phydev = ndev->phydev; - device_init_wakeup(&pdev->dev, 1); device_set_wakeup_enable(&pdev->dev, 0); -- 2.17.1