diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 07:25:11 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-09-12 12:22:08 -0400 |
commit | 3699ddc55fc1d1689a411ada9d74e584f7987f46 (patch) | |
tree | 66b07d9628837e8a6a3349049bfd6b324678bcb1 /drivers/net/wireless/ath/ath10k/pci.c | |
parent | e9bb0aa39bce2f0a159c562c322c2d2746e6560d (diff) |
wireless: ath10k: 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: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/pci.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index ecaf21315244..f1faf4691f91 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c | |||
@@ -2501,7 +2501,6 @@ err_region: | |||
2501 | err_device: | 2501 | err_device: |
2502 | pci_disable_device(pdev); | 2502 | pci_disable_device(pdev); |
2503 | err_ar: | 2503 | err_ar: |
2504 | pci_set_drvdata(pdev, NULL); | ||
2505 | ath10k_core_destroy(ar); | 2504 | ath10k_core_destroy(ar); |
2506 | err_ar_pci: | 2505 | err_ar_pci: |
2507 | /* call HIF PCI free here */ | 2506 | /* call HIF PCI free here */ |
@@ -2529,7 +2528,6 @@ static void ath10k_pci_remove(struct pci_dev *pdev) | |||
2529 | 2528 | ||
2530 | ath10k_core_unregister(ar); | 2529 | ath10k_core_unregister(ar); |
2531 | 2530 | ||
2532 | pci_set_drvdata(pdev, NULL); | ||
2533 | pci_iounmap(pdev, ar_pci->mem); | 2531 | pci_iounmap(pdev, ar_pci->mem); |
2534 | pci_release_region(pdev, BAR_NUM); | 2532 | pci_release_region(pdev, BAR_NUM); |
2535 | pci_clear_master(pdev); | 2533 | pci_clear_master(pdev); |