staging: rtl8723au: Remove unused pointer in rtw_wdev_free()
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.
Signed-off-by Christian Engelmayer <[email protected]>
---
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
@@ -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
Greg KH
maintainerQuoted 6 lines · Christian Engelmayer
Pointer '
pwdev_priv' in functionrtw_wdev_free()is unused - thus remove it.Signed-off-by Christian Engelmayer <[email protected]>---
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