mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 22:57:21 -04:00
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 <cengelma@gmx.at> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1b3b9af100
commit
0cc6c3ab3c
@@ -3560,15 +3560,11 @@ int rtw_wdev_alloc(struct rtw_adapter *padapter, struct device *dev)
|
||||
|
||||
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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user