diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-08-21 15:02:18 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-21 12:27:04 -0700 |
commit | 01007f5cfb441ca5f705009ba51ea50be4bc7dc7 (patch) | |
tree | a87c8e80abf9d2ed3b1d4405791b671a03e1ddda | |
parent | 0b251835c65b0bf14befaac453dc978167d0d0eb (diff) | |
download | op-kernel-dev-01007f5cfb441ca5f705009ba51ea50be4bc7dc7.zip op-kernel-dev-01007f5cfb441ca5f705009ba51ea50be4bc7dc7.tar.gz |
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>
-rw-r--r-- | drivers/net/ethernet/freescale/ucc_geth.c | 1 |
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 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; } |