Skip to content

Commit

Permalink
net: emac: remove unnecessary dev_set_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Libo Chen authored and David S. Miller committed Aug 21, 2013
1 parent 110a183 commit e6b0260
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/ibm/emac/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e6b0260

Please sign in to comment.