diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 07:26:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-09-26 15:13:43 -0400 |
commit | 3f06534183a0dd68a40fb286da0025d95a586eb0 (patch) | |
tree | 933f18ae63936a0354229d84f9efb7123b193965 /drivers/net/wireless/ath/wil6210 | |
parent | 1348088d6ff39c3b2c560da339eaf6284df95664 (diff) |
wireless: wil6210: 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>
Acked-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/pcie_bus.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/pcie_bus.c b/drivers/net/wireless/ath/wil6210/pcie_bus.c index eb1dc7ad80fb..eeceab39cda2 100644 --- a/drivers/net/wireless/ath/wil6210/pcie_bus.c +++ b/drivers/net/wireless/ath/wil6210/pcie_bus.c | |||
@@ -197,7 +197,6 @@ static void wil_pcie_remove(struct pci_dev *pdev) | |||
197 | pci_iounmap(pdev, wil->csr); | 197 | pci_iounmap(pdev, wil->csr); |
198 | pci_release_region(pdev, 0); | 198 | pci_release_region(pdev, 0); |
199 | pci_disable_device(pdev); | 199 | pci_disable_device(pdev); |
200 | pci_set_drvdata(pdev, NULL); | ||
201 | } | 200 | } |
202 | 201 | ||
203 | static DEFINE_PCI_DEVICE_TABLE(wil6210_pcie_ids) = { | 202 | static DEFINE_PCI_DEVICE_TABLE(wil6210_pcie_ids) = { |