diff options
author | Vladimir Zapolskiy <vz@mleia.com> | 2018-10-19 02:06:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-20 03:04:38 +0300 |
commit | 081a1b123c4dfea09562bf5f66f7c2ae20b554a3 (patch) | |
tree | 937263aa0721f7e554d39a70efecb60ee872332b /drivers/net | |
parent | 643d813a0efd7e6fd78b49f69643af66731e05c8 (diff) | |
download | linux-081a1b123c4dfea09562bf5f66f7c2ae20b554a3.tar.xz |
net: ethernet: lpc_eth: remove unused local variable
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 <vz@mleia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/nxp/lpc_eth.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index 7128cd05f79c..27974df7c053 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -1244,7 +1244,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; @@ -1410,8 +1409,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); |