summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/moxa
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-22 10:55:21 +0900
committerDavid S. Miller <davem@davemloft.net>2013-08-22 15:12:21 -0700
commit092270656d7f05f6d0c4eb79c8a74a2ce1b45bec (patch)
tree4243d1b714278e942e00844da5e75d603c94757f /drivers/net/ethernet/moxa
parent0f7cc9a3c2bd89b15720dbf358e9b9e62af27126 (diff)
ethernet: moxa: remove unnecessary platform_set_drvdata()
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>
Diffstat (limited to 'drivers/net/ethernet/moxa')
-rw-r--r--drivers/net/ethernet/moxa/moxart_ether.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c
index 6eee6863c224..83c2091c9c23 100644
--- a/drivers/net/ethernet/moxa/moxart_ether.c
+++ b/drivers/net/ethernet/moxa/moxart_ether.c
@@ -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;