net: thunderx: Remove unnecessary pci_set_drvdata()
authorWei Yongjun <weiyj.lk@gmail.com>
Mon, 15 Aug 2016 22:51:29 +0000 (22:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 23:16:11 +0000 (16:16 -0700)
commit60014eb153200386122aa5d4d7e6926c79a7ced8
treec3e5efb63d63169584a20139451012887592f2d7
parentcf8654046854dba57d7a8c9a06dc0a99a47db0a4
net: thunderx: Remove unnecessary pci_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/cavium/thunder/thunder_xcv.c