staging: rtl8723bs: remove unused variable pstapriv in rtw_dbg_port() in os_dep/ioctl...
authorFabio Aiuto <fabioaiuto83@gmail.com>
Fri, 9 Apr 2021 10:01:34 +0000 (12:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:19:06 +0000 (16:19 +0200)
remove unused variable. W=1 compiler issue:

drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:
In function ‘rtw_dbg_port’:
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:2448:19:
warning: unused variable ‘pstapriv’ [-Wunused-variable]
  struct sta_priv *pstapriv = &padapter->stapriv;

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/d433ffa5b52d6510811c882a80c1146c7d7be536.1617962215.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c

index d439245..ae74623 100644 (file)
@@ -2445,8 +2445,6 @@ static int rtw_dbg_port(struct net_device *dev,
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
        struct wlan_network *cur_network = &(pmlmepriv->cur_network);
-       struct sta_priv *pstapriv = &padapter->stapriv;
-
 
        pdata = (u32 *)&wrqu->data;