From: Libo Chen Date: Wed, 21 Aug 2013 07:02:36 +0000 (+0800) Subject: net: xilinx_emaclite: remove unnecessary dev_set_drvdata() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c671dc0c4979e69e0b342c8f4e80690660929db;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Acked-by: Michal Simek Signed-off-by: David S. Miller --- 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; }