Commit 0cc6c3ab authored by Christian Engelmayer's avatar Christian Engelmayer Committed by Greg Kroah-Hartman

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: default avatarChristian Engelmayer <cengelma@gmx.at>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1b3b9af1
......@@ -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]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment