diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-01-08 15:19:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-11 06:50:14 +0300 |
commit | 541b8e291f29e480fb9c6400ce796c2eaefe9229 (patch) | |
tree | 9a5febf5adc3f8b116ff849c588682519c347c84 /drivers/net/ethernet/nxp/lpc_eth.c | |
parent | fdffd2e8c7b361a831dc023c22bb8f4685c241ac (diff) | |
download | linux-541b8e291f29e480fb9c6400ce796c2eaefe9229.tar.xz |
net: lpc_eth: Remove unused variables
Commit e7f4dc3536a400 ("mdio: Move allocation of interrupts into core")
introduced the following build warnings:
drivers/net/ethernet/nxp/lpc_eth.c: In function 'lpc_mii_init':
drivers/net/ethernet/nxp/lpc_eth.c:865:1: warning: label 'err_out_1' defined but not used [-Wunused-label]
drivers/net/ethernet/nxp/lpc_eth.c:826:20: warning: unused variable 'i' [-Wunused-variable]
Remove the unused variables to fix them.
Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/nxp/lpc_eth.c')
-rw-r--r-- | drivers/net/ethernet/nxp/lpc_eth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index a9ce37f9bb2e..b1ce7aaa8f8b 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -823,7 +823,7 @@ static int lpc_mii_probe(struct net_device *ndev) static int lpc_mii_init(struct netdata_local *pldat) { - int err = -ENXIO, i; + int err = -ENXIO; pldat->mii_bus = mdiobus_alloc(); if (!pldat->mii_bus) { @@ -862,7 +862,6 @@ static int lpc_mii_init(struct netdata_local *pldat) err_out_unregister_bus: mdiobus_unregister(pldat->mii_bus); -err_out_1: mdiobus_free(pldat->mii_bus); err_out: return err; |