summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/adm8211.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 20:22:10 +0900
committerJohn W. Linville <linville@tuxdriver.com>2013-09-26 15:13:42 -0400
commit11caec6952599c95e43e34b87e75a6add5be0067 (patch)
treedf64db149f1781de5b8a5a87568a6d7161273721 /drivers/net/wireless/adm8211.c
parentc1faf2cae280400e5368431da9c87ecfca8fbc62 (diff)
downloadlinux-11caec6952599c95e43e34b87e75a6add5be0067.tar.gz
linux-11caec6952599c95e43e34b87e75a6add5be0067.tar.bz2
linux-11caec6952599c95e43e34b87e75a6add5be0067.zip
wireless: adm8211: 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>
Diffstat (limited to 'drivers/net/wireless/adm8211.c')
-rw-r--r--drivers/net/wireless/adm8211.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c
index f9a24e599dee..cfce83e1f273 100644
--- a/drivers/net/wireless/adm8211.c
+++ b/drivers/net/wireless/adm8211.c
@@ -1924,7 +1924,6 @@ static int adm8211_probe(struct pci_dev *pdev,
pci_iounmap(pdev, priv->map);
err_free_dev:
- pci_set_drvdata(pdev, NULL);
ieee80211_free_hw(dev);
err_free_reg: