[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1471301508-24970-1-git-send-email-weiyj.lk@gmail.com>
Date: Mon, 15 Aug 2016 22:51:48 +0000
From: Wei Yongjun <weiyj.lk@...il.com>
To: Felix Fietkau <nbd@...nwrt.org>, John Crispin <blogic@...nwrt.org>,
Matthias Brugger <matthias.bgg@...il.com>
Cc: Wei Yongjun <weiyj.lk@...il.com>, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: [PATCH -next] net: mediatek: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Wei Yongjun <weiyj.lk@...il.com>
---
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index 88b04dd..65986a0 100644
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -1895,7 +1895,6 @@ static int mtk_remove(struct platform_device *pdev)
netif_napi_del(ð->tx_napi);
netif_napi_del(ð->rx_napi);
mtk_cleanup(eth);
- platform_set_drvdata(pdev, NULL);
return 0;
}
Powered by blists - more mailing lists