diff options
author | Wei Yongjun | 2016-08-15 22:51:48 +0000 |
---|---|---|
committer | David S. Miller | 2016-08-15 16:16:11 -0700 |
commit | 45d339309f491058f5a3f974a17aa893f5a35329 (patch) | |
tree | 0c6a7ee4ca9a3fac883fdb055f62aa9370c23a13 | |
parent | 5288b6fff17369386e435b6780a00e3e3fd633de (diff) |
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@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 3a4726e2a297..994232e03380 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -1892,7 +1892,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; } |