Skip to contentSkip to conversation

staging: rtl8723au: Remove unused pointer in rtw_wdev_free()

PATCH Superseded Christian Engelmayer 2 participants 2 messages Apr 26, 2014 – May 4, 2014 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723au: Remove unused pointer in rtw_wdev_free()

Pointer 'pwdev_priv' in function rtw_wdev_free() is unused - thus remove it.

---
Compile tested and applies against v3.15-rc2 as well as branch staging-next of tree git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git

---
 drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c +0 -4
index ca100dc..be89741 100644
@@ -3576,15 +3576,11 @@ exit:
 
 void rtw_wdev_free(struct wireless_dev *wdev)
 {
-	struct rtw_wdev_priv *pwdev_priv;
-
 	DBG_8723A("%s(wdev =%p)\n", __func__, wdev);
 
 	if (!wdev)
 		return;
 
-	pwdev_priv = wdev_to_priv(wdev);
-
 	kfree(wdev->wiphy->bands[IEEE80211_BAND_2GHZ]);
 	kfree(wdev->wiphy->bands[IEEE80211_BAND_5GHZ]);
 
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 6 lines · Christian Engelmayer

Pointer 'pwdev_priv' in function rtw_wdev_free() is unused - thus remove it.

---
Compile tested and applies against v3.15-rc2 as well as branch staging-next of tree git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git

This doesn't seem to apply to my tree at all :(

greg k-h