net: sun4i-emac: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 4 Jun 2013 00:31:19 +0000 (00:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2013 00:40:10 +0000 (17:40 -0700)
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Stefan Roese <sr@denx.de>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/allwinner/sun4i-emac.c

index 0bb2f4af9952025f377c2a388de4e4f6842d5acc..e9c8dbe4c88f7a7ef25f7ab70be6b9455b7255c5 100644 (file)
@@ -898,8 +898,6 @@ static int emac_remove(struct platform_device *pdev)
 {
        struct net_device *ndev = platform_get_drvdata(pdev);
 
-       platform_set_drvdata(pdev, NULL);
-
        unregister_netdev(ndev);
        free_netdev(ndev);