staging: rtl8723bs: remove unused variable and empty for cycles left unused in os_dep/ioctl_linux.c

fix following kernel test robot warnings:

drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:2573:33:
warning: variable ‘preorder_ctrl’ set but
	not used [-Wunused-but-set-variable]
       struct recv_reorder_ctrl *preorder_ctrl;
                                 ^~~~~~~~~~~~~
remove also empty for cycle left unused and counter variable.

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/fb1e8ea3cfeda1af27ab1a9393140e144b5cb4b5.1617962215.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Fabio Aiuto 2021-04-09 12:01:30 +02:00 committed by Greg Kroah-Hartman
parent 2fd8a02012
commit ffdbed83c4

View File

@ -2568,9 +2568,8 @@ static int rtw_dbg_port(struct net_device *dev,
break; break;
case 0x09: case 0x09:
{ {
int i, j; int i;
struct list_head *plist, *phead; struct list_head *plist, *phead;
struct recv_reorder_ctrl *preorder_ctrl;
spin_lock_bh(&pstapriv->sta_hash_lock); spin_lock_bh(&pstapriv->sta_hash_lock);
@ -2582,10 +2581,6 @@ static int rtw_dbg_port(struct net_device *dev,
psta = container_of(plist, struct sta_info, hash_list); psta = container_of(plist, struct sta_info, hash_list);
plist = get_next(plist); plist = get_next(plist);
if (extra_arg == psta->aid)
for (j = 0; j < 16; j++)
preorder_ctrl = &psta->recvreorder_ctrl[j];
} }
} }