Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0acfd4b0 authored by Jingoo Han's avatar Jingoo Han Committed by John W. Linville
Browse files

wireless: ipw2x00: 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 3f065341
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -11885,7 +11885,6 @@ static int ipw_pci_probe(struct pci_dev *pdev,
	pci_release_regions(pdev);
      out_pci_disable_device:
	pci_disable_device(pdev);
	pci_set_drvdata(pdev, NULL);
      out_free_libipw:
	free_libipw(priv->net_dev, 0);
      out:
@@ -11966,7 +11965,6 @@ static void ipw_pci_remove(struct pci_dev *pdev)
	iounmap(priv->hw_base);
	pci_release_regions(pdev);
	pci_disable_device(pdev);
	pci_set_drvdata(pdev, NULL);
	/* wiphy_unregister needs to be here, before free_libipw */
	wiphy_unregister(priv->ieee->wdev.wiphy);
	kfree(priv->ieee->a_band.channels);