Commit 0c671dc0 authored by Libo Chen's avatar Libo Chen Committed by David S. Miller
Browse files

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: default avatarLibo Chen <libo.chen@huawei.com>
Acked-by: default avatarMichal Simek <monstr@monstr.eu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d9a875a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}