staging: rtl8723bs: remove empty for cycles left by DBG_871X removal
authorFabio Aiuto <fabioaiuto83@gmail.com>
Wed, 7 Apr 2021 13:49:33 +0000 (15:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Apr 2021 15:13:03 +0000 (17:13 +0200)
remove empty for cycles and unused counter variables to suppress
compiler warnings.

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

index 71ec5af..2d1201b 100644 (file)
@@ -1454,10 +1454,6 @@ validate_80211w_fail:
 
 static inline void dump_rx_packet(u8 *ptr)
 {
-       int i;
-
-       for (i = 0; i < 64; i = i+8)
-               {}
 }
 
 static signed int validate_recv_frame(struct adapter *adapter, union recv_frame *precv_frame)
index 2f65162..5d103d3 100644 (file)
@@ -571,13 +571,6 @@ static int rtw_set_wpa_ie(struct adapter *padapter, char *pie, unsigned short ie
 
                memcpy(buf, pie, ielen);
 
-               /* dump */
-               {
-                       int i;
-                       for (i = 0; i < ielen; i = i + 8)
-                               {}
-               }
-
                if (ielen < RSN_HEADER_LEN) {
                        ret  = -1;
                        goto exit;