summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sun/sunhme.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-22 13:20:59 +0900
committerDavid S. Miller <davem@davemloft.net>2013-10-22 02:11:53 -0400
commit5d41bf328f6b13de1218c8741cb966162a82608c (patch)
tree4e942e124f61d76df3f83879fb32278c3d9fcfd4 /drivers/net/ethernet/sun/sunhme.c
parent7f8cbb23f598a07f9de7ca66ab86d772f08876b3 (diff)
downloadblackbird-op-linux-5d41bf328f6b13de1218c8741cb966162a82608c.tar.gz
blackbird-op-linux-5d41bf328f6b13de1218c8741cb966162a82608c.zip
net: sunhme: 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: Jingoo Han <jg1.han@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sunhme.c')
-rw-r--r--drivers/net/ethernet/sun/sunhme.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c
index 99043b74bf2b..0dbf46f08ed5 100644
--- a/drivers/net/ethernet/sun/sunhme.c
+++ b/drivers/net/ethernet/sun/sunhme.c
@@ -3170,8 +3170,6 @@ static void happy_meal_pci_remove(struct pci_dev *pdev)
pci_release_regions(hp->happy_dev);
free_netdev(net_dev);
-
- pci_set_drvdata(pdev, NULL);
}
static DEFINE_PCI_DEVICE_TABLE(happymeal_pci_ids) = {
OpenPOWER on IntegriCloud