summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-08-21 15:02:18 +0800
committerDavid S. Miller <davem@davemloft.net>2013-08-21 12:27:04 -0700
commit01007f5cfb441ca5f705009ba51ea50be4bc7dc7 (patch)
treea87c8e80abf9d2ed3b1d4405791b671a03e1ddda /drivers
parent0b251835c65b0bf14befaac453dc978167d0d0eb (diff)
net: ucc_geth: remove unnecessary dev_set_drvdata()
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/freescale/ucc_geth.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c
index 533885c40747..5930c39672db 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;
}