Commit 1348088d authored by Jingoo Han's avatar Jingoo Han Committed by John W. Linville

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 81d50366
...@@ -2520,7 +2520,6 @@ static int ath10k_pci_probe(struct pci_dev *pdev, ...@@ -2520,7 +2520,6 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
err_device: err_device:
pci_disable_device(pdev); pci_disable_device(pdev);
err_ar: err_ar:
pci_set_drvdata(pdev, NULL);
ath10k_core_destroy(ar); ath10k_core_destroy(ar);
err_ar_pci: err_ar_pci:
/* call HIF PCI free here */ /* call HIF PCI free here */
...@@ -2548,7 +2547,6 @@ static void ath10k_pci_remove(struct pci_dev *pdev) ...@@ -2548,7 +2547,6 @@ static void ath10k_pci_remove(struct pci_dev *pdev)
ath10k_core_unregister(ar); ath10k_core_unregister(ar);
pci_set_drvdata(pdev, NULL);
pci_iounmap(pdev, ar_pci->mem); pci_iounmap(pdev, ar_pci->mem);
pci_release_region(pdev, BAR_NUM); pci_release_region(pdev, BAR_NUM);
pci_clear_master(pdev); pci_clear_master(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment