Skip to content

Commit

Permalink
net: xilinx_emaclite: 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>
Acked-by: Michal Simek <monstr@monstr.eu>
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 7d9a875 commit 0c671dc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/xilinx/xilinx_emaclite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,6 @@ static int xemaclite_of_remove(struct platform_device *of_dev)
lp->phy_node = NULL;

xemaclite_remove_ndev(ndev, of_dev);
dev_set_drvdata(dev, NULL);

return 0;
}
Expand Down

0 comments on commit 0c671dc

Please sign in to comment.