net: ethernet: dpaa: remove unused variables
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Sep 2018 13:12:13 +0000 (15:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2018 17:25:11 +0000 (10:25 -0700)
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")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c

index 5d0fdf6..13d6e22 100644 (file)
@@ -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);