diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-08-21 11:02:36 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-21 23:27:04 +0400 |
commit | 0c671dc0c4979e69e0b342c8f4e80690660929db (patch) | |
tree | 6b94518e0b5a2a1f00c15afe1ef7a285586bcff2 /drivers/net/ethernet/xilinx/xilinx_emaclite.c | |
parent | 7d9a875a76755e2da8f64ca962ea3f5147f2467f (diff) | |
download | linux-0c671dc0c4979e69e0b342c8f4e80690660929db.tar.xz |
net: xilinx_emaclite: 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>
Acked-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx/xilinx_emaclite.c')
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_emaclite.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 7c1ccbcb47be..4c619ea5189f 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c @@ -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; } |