Skip to content

Commit 95e57a2

Browse files
mistraubegregkh
authored andcommitted
staging: rtl8723bs: remove function pointer hal_reset_security_engine
The function pointer hal_reset_security_engine is never set. As a consequence, the function rtw_hal_reset_security_engine does nothing. Remove both to reduce dead code. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20250715182814.212708-10-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f742f77 commit 95e57a2

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

drivers/staging/rtl8723bs/hal/hal_intf.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ uint rtw_hal_init(struct adapter *padapter)
7373
if (padapter->registrypriv.notch_filter == 1)
7474
rtw_hal_notch_filter(padapter, 1);
7575

76-
rtw_hal_reset_security_engine(padapter);
77-
7876
rtw_sec_restore_wep_key(dvobj->padapters);
7977

8078
init_hw_mlme_ext(padapter);
@@ -293,12 +291,6 @@ void rtw_hal_notch_filter(struct adapter *adapter, bool enable)
293291
hal_notch_filter_8723b(adapter, enable);
294292
}
295293

296-
void rtw_hal_reset_security_engine(struct adapter *adapter)
297-
{
298-
if (adapter->HalFunc.hal_reset_security_engine)
299-
adapter->HalFunc.hal_reset_security_engine(adapter);
300-
}
301-
302294
bool rtw_hal_c2h_valid(struct adapter *adapter, u8 *buf)
303295
{
304296
return c2h_evt_valid((struct c2h_evt_hdr_88xx *)buf);

drivers/staging/rtl8723bs/include/hal_intf.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ enum hal_intf_ps_func {
161161
typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
162162

163163
struct hal_ops {
164-
void (*hal_reset_security_engine)(struct adapter *adapter);
165164
c2h_id_filter c2h_id_filter_ccx;
166165
};
167166

@@ -253,7 +252,6 @@ void rtw_hal_dm_watchdog_in_lps(struct adapter *padapter);
253252
s32 rtw_hal_xmit_thread_handler(struct adapter *padapter);
254253

255254
void rtw_hal_notch_filter(struct adapter *adapter, bool enable);
256-
void rtw_hal_reset_security_engine(struct adapter *adapter);
257255

258256
bool rtw_hal_c2h_valid(struct adapter *adapter, u8 *buf);
259257
s32 rtw_hal_c2h_handler(struct adapter *adapter, u8 *c2h_evt);

0 commit comments

Comments
 (0)