net: qlge: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 22 Oct 2013 04:15:36 +0000 (13:15 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Oct 2013 06:11:51 +0000 (02:11 -0400)
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>
drivers/net/ethernet/qlogic/qlge/qlge_main.c

index 64f94098bc0239f99932bc6ed093e64b1cff0d21..a245dc18d769241bcf23d607458e33538c7ee99c 100644 (file)
@@ -4577,7 +4577,6 @@ static void ql_release_all(struct pci_dev *pdev)
                iounmap(qdev->doorbell_area);
        vfree(qdev->mpi_coredump);
        pci_release_regions(pdev);
-       pci_set_drvdata(pdev, NULL);
 }
 
 static int ql_init_device(struct pci_dev *pdev, struct net_device *ndev,