diff options
| author | Jingoo Han <[email protected]> | 2013-09-10 20:29:19 +0900 |
|---|---|---|
| committer | John W. Linville <[email protected]> | 2013-09-26 15:13:44 -0400 |
| commit | 68351b58036b39fc91d52682a2806aa8a66e53dd (patch) | |
| tree | c8beeb9f8912da4292fef5debf789b8fab82d838 /drivers/net/wireless/orinoco/orinoco_pci.c | |
| parent | e53c61a055988739e0f7a2cbf14a5e48427778a3 (diff) | |
wireless: orinoco: 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 <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'drivers/net/wireless/orinoco/orinoco_pci.c')
| -rw-r--r-- | drivers/net/wireless/orinoco/orinoco_pci.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco_pci.c b/drivers/net/wireless/orinoco/orinoco_pci.c index 677bf14eca84..5ae1191d2532 100644 --- a/drivers/net/wireless/orinoco/orinoco_pci.c +++ b/drivers/net/wireless/orinoco/orinoco_pci.c @@ -184,7 +184,6 @@ static int orinoco_pci_init_one(struct pci_dev *pdev, free_irq(pdev->irq, priv); fail_irq: - pci_set_drvdata(pdev, NULL); free_orinocodev(priv); fail_alloc: @@ -205,7 +204,6 @@ static void orinoco_pci_remove_one(struct pci_dev *pdev) orinoco_if_del(priv); free_irq(pdev->irq, priv); - pci_set_drvdata(pdev, NULL); free_orinocodev(priv); pci_iounmap(pdev, priv->hw.iobase); pci_release_regions(pdev); |