From: Libo Chen Date: Wed, 21 Aug 2013 07:02:18 +0000 (+0800) Subject: net: ucc_geth: remove unnecessary dev_set_drvdata() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=01007f5cfb441ca5f705009ba51ea50be4bc7dc7;p=linux-beck.git 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: Libo Chen Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index 533885c40747..5930c39672db 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c @@ -3917,7 +3917,6 @@ static int ucc_geth_remove(struct platform_device* ofdev) unregister_netdev(dev); free_netdev(dev); ucc_geth_memclean(ugeth); - dev_set_drvdata(device, NULL); return 0; }