diff options
| author | Anirban Bose <boses156@gmail.com> | 2026-07-10 14:11:39 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-10 16:52:55 +0200 |
| commit | cfea8865cba0264777a3cc464ffba64f0102317f (patch) | |
| tree | acf763cc3f3251db766b0a5cc5bb79bca46d4d35 | |
| parent | 1fd634db2e431c7b34d6673351de1804ef003612 (diff) | |
staging: rtl8723bs: remove unused variable bDumpRxPkt
The 'bDumpRxPkt' variable is declared validate_recv_frame() function and
some debug information is written into it by rtw_hal_get_def_var() but
as I have checked it, it is not used anywhere else in the function so
its basically a useless variable now.
I have remove the variable and its assignment in the function.
Signed-off-by: Anirban Bose <boses156@gmail.com>
Link: https://patch.msgid.link/20260710141139.20541-1-boses156@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_recv.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c index 68e26fb139c3..16ec2248b083 100644 --- a/drivers/staging/rtl8723bs/core/rtw_recv.c +++ b/drivers/staging/rtl8723bs/core/rtw_recv.c @@ -1448,7 +1448,6 @@ static signed int validate_recv_frame(struct adapter *adapter, union recv_frame u8 type; u8 subtype; signed int retval = _SUCCESS; - u8 bDumpRxPkt; struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; @@ -1474,7 +1473,6 @@ static signed int validate_recv_frame(struct adapter *adapter, union recv_frame pattrib->mdata = GetMData(ptr); pattrib->privacy = GetPrivacy(ptr); pattrib->order = GetOrder(ptr); - rtw_hal_get_def_var(adapter, HAL_DEF_DBG_DUMP_RXPKT, &(bDumpRxPkt)); switch (type) { case WIFI_MGT_TYPE: /* mgnt */ |
