Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01007f5c authored by Libo Chen's avatar Libo Chen Committed by David S. Miller
Browse files

net: ucc_geth: 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>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0b251835
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -3917,7 +3917,6 @@ static int ucc_geth_remove(struct platform_device* ofdev)
	unregister_netdev(dev);
	unregister_netdev(dev);
	free_netdev(dev);
	free_netdev(dev);
	ucc_geth_memclean(ugeth);
	ucc_geth_memclean(ugeth);
	dev_set_drvdata(device, NULL);


	return 0;
	return 0;
}
}