diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 07:29:19 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 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 <jg1.han@samsung.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
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, | |||
184 | free_irq(pdev->irq, priv); | 184 | free_irq(pdev->irq, priv); |
185 | 185 | ||
186 | fail_irq: | 186 | fail_irq: |
187 | pci_set_drvdata(pdev, NULL); | ||
188 | free_orinocodev(priv); | 187 | free_orinocodev(priv); |
189 | 188 | ||
190 | fail_alloc: | 189 | fail_alloc: |
@@ -205,7 +204,6 @@ static void orinoco_pci_remove_one(struct pci_dev *pdev) | |||
205 | 204 | ||
206 | orinoco_if_del(priv); | 205 | orinoco_if_del(priv); |
207 | free_irq(pdev->irq, priv); | 206 | free_irq(pdev->irq, priv); |
208 | pci_set_drvdata(pdev, NULL); | ||
209 | free_orinocodev(priv); | 207 | free_orinocodev(priv); |
210 | pci_iounmap(pdev, priv->hw.iobase); | 208 | pci_iounmap(pdev, priv->hw.iobase); |
211 | pci_release_regions(pdev); | 209 | pci_release_regions(pdev); |