Skip to contentSkip to conversation

net: ethernet: dpaa: remove unused variables

PATCH Applied Arnd Bergmann 2 participants 2 messages Sep 26, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ethernet: dpaa: remove unused variables

The patch that removed the only users of the oldadv/newadv variables accidentally left the now-unused declarations behind:

drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c: In function 'dpaa_set_pauseparam':
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c:185:14: error: unused variable 'oldadv' [-Werror=unused-variable] drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c:185:6: error: unused variable 'newadv' [-Werror=unused-variable]

Fixes 70814e819c11 ("net: ethernet: Add helper for set_pauseparam for Asym Pause")
---
 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c +0 -1
index 5d0fdf667b82..13d6e2272ece 100644
@@ -182,7 +182,6 @@ static int dpaa_set_pauseparam(struct net_device *net_dev,
 	struct phy_device *phydev;
 	bool rx_pause, tx_pause;
 	struct dpaa_priv *priv;
-	u32 newadv, oldadv;
 	int err;
 
 	priv = netdev_priv(net_dev);
Signature · 1 line
2.18.0
maintainer Applied
#1 lore raw

From: Arnd Bergmann <[email protected]>
Date: Wed, 26 Sep 2018 15:12:13 +0200

Quoted 9 lines

The patch that removed the only users of the oldadv/newadv variables accidentally left the now-unused declarations behind:

drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c: In function 'dpaa_set_pauseparam':
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c:185:14: error: unused variable 'oldadv' [-Werror=unused-variable] drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c:185:6: error: unused variable 'newadv' [-Werror=unused-variable]

Fixes 70814e819c11 ("net: ethernet: Add helper for set_pauseparam for Asym Pause")

Applied.