Patchwork [2/8] net: ucc_geth: remove unnecessary dev_set_drvdata()

login
register
mail settings
Submitter Libo Chen
Date Aug. 21, 2013, 7:02 a.m.
Message ID <1377068538-22432-1-git-send-email-libo.chen@huawei.com>
Download mbox | patch
Permalink /patch/268751/
State Not Applicable
Headers show

Comments

Libo Chen - Aug. 21, 2013, 7:02 a.m.
Unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
---
 drivers/net/ethernet/freescale/ucc_geth.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c
index 533885c..5930c39 100644
--- a/drivers/net/ethernet/freescale/ucc_geth.c
+++ b/drivers/net/ethernet/freescale/ucc_geth.c
@@ -3917,7 +3917,6 @@  static int ucc_geth_remove(struct platform_device* ofdev)
 	unregister_netdev(dev);
 	free_netdev(dev);
 	ucc_geth_memclean(ugeth);
-	dev_set_drvdata(device, NULL);
 
 	return 0;
 }