net: mediatek: remove unnecessary platform_set_drvdata()
authorWei Yongjun <weiyj.lk@gmail.com>
Mon, 15 Aug 2016 22:51:48 +0000 (22:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 23:16:11 +0000 (16:16 -0700)
commit45d339309f491058f5a3f974a17aa893f5a35329
tree0c6a7ee4ca9a3fac883fdb055f62aa9370c23a13
parent5288b6fff17369386e435b6780a00e3e3fd633de
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>
drivers/net/ethernet/mediatek/mtk_eth_soc.c