diff options
| author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 15:25:11 +0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2013-09-26 23:13:43 +0400 |
| commit | 1348088d6ff39c3b2c560da339eaf6284df95664 (patch) | |
| tree | 6a1e44f3c6628f347ae938c4e6844844ae92e557 | |
| parent | 81d503660dc959af641bb3b54a9162586297dc39 (diff) | |
| download | linux-1348088d6ff39c3b2c560da339eaf6284df95664.tar.xz | |
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: John W. Linville <linville@tuxdriver.com>
| -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 622901d5237f..56501f47ab9c 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -2520,7 +2520,6 @@ err_region: err_device: pci_disable_device(pdev); err_ar: - pci_set_drvdata(pdev, NULL); ath10k_core_destroy(ar); err_ar_pci: /* call HIF PCI free here */ @@ -2548,7 +2547,6 @@ static void ath10k_pci_remove(struct pci_dev *pdev) ath10k_core_unregister(ar); - pci_set_drvdata(pdev, NULL); pci_iounmap(pdev, ar_pci->mem); pci_release_region(pdev, BAR_NUM); pci_clear_master(pdev); |
