mirror of https://gitee.com/openkylin/linux.git
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: Libo Chen <libo.chen@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
110a183c8a
commit
e6b0260c2a
|
@ -2955,8 +2955,6 @@ static int emac_remove(struct platform_device *ofdev)
|
|||
|
||||
DBG(dev, "remove" NL);
|
||||
|
||||
dev_set_drvdata(&ofdev->dev, NULL);
|
||||
|
||||
unregister_netdev(dev->ndev);
|
||||
|
||||
cancel_work_sync(&dev->reset_work);
|
||||
|
|
Loading…
Reference in New Issue