Skip to content

Commit

Permalink
net: ethernet: lpc_eth: remove unused local variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vladimir Zapolskiy authored and David S. Miller committed Oct 20, 2018
1 parent 643d813 commit 081a1b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/ethernet/nxp/lpc_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 081a1b1

Please sign in to comment.