diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 20:18:38 +0900 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-09-26 15:13:41 -0400 |
commit | 8d450935ae7f9ceaaa2c6fb21856c286aa9ccf8e (patch) | |
tree | 3e53e7aa4527cc2a8e7a7a38199d2f5e892fc8d8 /drivers/net/wireless/rtlwifi/pci.c | |
parent | c4978e251f3a5cd0576bc411942f08c9a11f62d8 (diff) | |
download | talos-obmc-linux-8d450935ae7f9ceaaa2c6fb21856c286aa9ccf8e.tar.gz talos-obmc-linux-8d450935ae7f9ceaaa2c6fb21856c286aa9ccf8e.zip |
wireless: rtlwifi: 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: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/pci.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/pci.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index 703f839af6ca..2b6d3e0afef0 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c @@ -2009,7 +2009,6 @@ fail2: fail1: if (hw) ieee80211_free_hw(hw); - pci_set_drvdata(pdev, NULL); pci_disable_device(pdev); return err; @@ -2064,8 +2063,6 @@ void rtl_pci_disconnect(struct pci_dev *pdev) rtl_pci_disable_aspm(hw); - pci_set_drvdata(pdev, NULL); - ieee80211_free_hw(hw); } EXPORT_SYMBOL(rtl_pci_disconnect); |