mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 19:46:45 +07:00
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>
This commit is contained in:
parent
81d503660d
commit
1348088d6f
@ -2520,7 +2520,6 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user