summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFabio Aiuto <fabioaiuto83@gmail.com>2021-04-07 15:49:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-07 17:13:03 +0200
commit3f85c670a264ef485edff65bb9fafc16c78e044a (patch)
tree91d903111520c1cf8672613b89a5bf8bbdf963d4 /drivers
parent3dc682aed3a188d32eaa7e8a283b7295ea18fd8f (diff)
staging: rtl8723bs: remove empty for cycles left by DBG_871X removal
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_recv.c4
-rw-r--r--drivers/staging/rtl8723bs/os_dep/ioctl_linux.c7
2 files changed, 0 insertions, 11 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c
index 71ec5af0455d..2d1201b70ab1 100644
--- a/drivers/staging/rtl8723bs/core/rtw_recv.c
+++ b/drivers/staging/rtl8723bs/core/rtw_recv.c
@@ -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)
diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
index 2f6516283248..5d103d33a128 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
@@ -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;