ethernet: moxa: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 22 Aug 2013 01:55:21 +0000 (10:55 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Aug 2013 22:12:21 +0000 (15:12 -0700)
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/moxa/moxart_ether.c

index 6eee6863c2240dfc94f01e584ffa5c17c052fbdd..83c2091c9c234bfe9ecbb4067d1396aee19f49f6 100644 (file)
@@ -533,7 +533,6 @@ static int moxart_remove(struct platform_device *pdev)
        unregister_netdev(ndev);
        free_irq(ndev->irq, ndev);
        moxart_mac_free_memory(ndev);
-       platform_set_drvdata(pdev, NULL);
        free_netdev(ndev);
 
        return 0;