sh_eth: fix unused variable warning
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 21 Mar 2013 22:59:00 +0000 (01:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Mar 2013 22:27:40 +0000 (18:27 -0400)
Commit d5e07e69218fd9aa21d6c8c5ccc629d92bdb9b0f (sh_eth: use managed device API)
has caused this warning (due to my overlook):

drivers/net/ethernet/renesas/sh_eth.c: In function `sh_eth_drv_remove':
drivers/net/ethernet/renesas/sh_eth.c:2482:25: warning: unused variable `mdp'
[-Wunused-variable]

Kill the darn variable now...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c

index 1dfebe10d5d8dbdfab8c35a84fe965c3579463fd..3703a29022b6634a76fcc7fe1f8e3c41c4d53378 100644 (file)
@@ -2479,7 +2479,6 @@ out:
 static int sh_eth_drv_remove(struct platform_device *pdev)
 {
        struct net_device *ndev = platform_get_drvdata(pdev);
-       struct sh_eth_private *mdp = netdev_priv(ndev);
 
        sh_mdio_release(ndev);
        unregister_netdev(ndev);