lpc_eth: remove unused variable
Subsystems (3)
PATCH 1/1 lpc_eth: remove unused variable
A cleanup patch removed the only user of a local variable, as indicated by a gcc warning.
drivers/net/ethernet/nxp/lpc_eth.c: In function 'lpc_eth_ioctl':drivers/net/ethernet/nxp/lpc_eth.c:1183:24: error: unused variable 'pldat' [-Werror=unused-variable]
This removes the variable as well.
Signed-off-by Arnd Bergmann <[email protected]>
Fixes f786f3564c4f ("net: ethernet: lpc_eth: use phydev from struct net_device")
--- drivers/net/ethernet/nxp/lpc_eth.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/nxp/lpc_eth.c +0 -1
@@ -1180,7 +1180,6 @@ static void lpc_eth_set_multicast_list(struct net_device *ndev)static int lpc_eth_ioctl (struct net_device *ndev,struct ifreq *req,int cmd) { -struct netdata_local *pldat =netdev_priv (ndev);struct phy_device *phydev = ndev->phydev;if (!netif_running (ndev))
Signature · 1 line
2.9.0
Quoted 19 lines · Arnd Bergmann
A cleanup patch removed the only user of a local variable, as indicated by a gcc warning.
drivers/net/ethernet/nxp/lpc_eth.c: In function 'lpc_eth_ioctl':drivers/net/ethernet/nxp/lpc_eth.c:1183:24: error: unused variable 'pldat' [-Werror=unused-variable]This removes the variable as well.
Signed-off-by Arnd Bergmann <[email protected]>Fixes f786f3564c4f ("net: ethernet: lpc_eth: use phydev from struct net_device")--- drivers/net/ethernet/nxp/lpc_eth.c | 1 - 1 file changed, 1 deletion(-)drivers/net/ethernet/nxp/lpc_eth.c +0
-0
drivers/net/ethernet/nxp/lpc_eth.c static void lpc_eth_set_multicast_list(struct net_device *ndev) · line 1185
Quoted 7 lines
drivers/net/ethernet/nxp/lpc_eth.c +0
-1@@ -1180,7 +1180,6 @@ static void lpc_eth_set_multicast_list(struct net_device *ndev)static int lpc_eth_ioctl (struct net_device *ndev,struct ifreq *req,int cmd) { -struct netdata_local *pldat =netdev_priv (ndev);struct phy_device *phydev = ndev->phydev;if (!netif_running (ndev))
Acked-by Sylvain Lemieux <[email protected]>