提交 e6b0260c 编写于 作者: L Libo Chen 提交者: David S. Miller

net: emac: 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: NLibo Chen <libo.chen@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 110a183c
...@@ -2955,8 +2955,6 @@ static int emac_remove(struct platform_device *ofdev) ...@@ -2955,8 +2955,6 @@ static int emac_remove(struct platform_device *ofdev)
DBG(dev, "remove" NL); DBG(dev, "remove" NL);
dev_set_drvdata(&ofdev->dev, NULL);
unregister_netdev(dev->ndev); unregister_netdev(dev->ndev);
cancel_work_sync(&dev->reset_work); cancel_work_sync(&dev->reset_work);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册