mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
staging: rtl8723bs: remove unused variable in os_dep/ioctl_linux.c
fix following kernel test robot warning:
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:
In function ‘rtw_wx_set_mlme’:
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:1128:6:
warning: variable ‘reason’ set but
not used [-Wunused-but-set-variable]
u16 reason;
^~~~~~
Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/6211c4177a9ef1e677987c9ebac445df08605f40.1617962215.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fc122027a5
commit
1fdc17a793
|
|
@ -1125,7 +1125,6 @@ static int rtw_wx_set_mlme(struct net_device *dev,
|
|||
union iwreq_data *wrqu, char *extra)
|
||||
{
|
||||
int ret = 0;
|
||||
u16 reason;
|
||||
struct adapter *padapter = rtw_netdev_priv(dev);
|
||||
struct iw_mlme *mlme = (struct iw_mlme *)extra;
|
||||
|
||||
|
|
@ -1133,8 +1132,6 @@ static int rtw_wx_set_mlme(struct net_device *dev,
|
|||
if (mlme == NULL)
|
||||
return -1;
|
||||
|
||||
reason = mlme->reason_code;
|
||||
|
||||
switch (mlme->cmd) {
|
||||
case IW_MLME_DEAUTH:
|
||||
if (!rtw_set_802_11_disassociate(padapter))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user