staging: rtl8723au: Remove unused pointer in rtw_wdev_free()
authorChristian Engelmayer <cengelma@gmx.at>
Wed, 7 May 2014 19:21:58 +0000 (21:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 20:17:31 +0000 (13:17 -0700)
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>
drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c

index 1e3129f12f84c5a233e1cbe76d3587fb0d8030f2..53cec46763f00c12036f9a912110f51e8b8e3642 100644 (file)
@@ -3560,15 +3560,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]);