Skip to content

Commit 86dcc99

Browse files
mistraubegregkh
authored andcommitted
staging: rtl8723bs: remove function pointer c2h_id_filter
Remove function pointer c2h_id_filter from struct hal_ops and use c2h_id_filter_ccx_8723b directly to reduce code complexity. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20250715182814.212708-11-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 95e57a2 commit 86dcc99

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/staging/rtl8723bs/hal/hal_intf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ s32 rtw_hal_c2h_handler(struct adapter *adapter, u8 *c2h_evt)
303303

304304
c2h_id_filter rtw_hal_c2h_id_filter_ccx(struct adapter *adapter)
305305
{
306-
return adapter->HalFunc.c2h_id_filter_ccx;
306+
return c2h_id_filter_ccx_8723b;
307307
}
308308

309309
s32 rtw_hal_macid_sleep(struct adapter *padapter, u32 macid)

drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,6 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level)
13151315

13161316
void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
13171317
{
1318-
pHalFunc->c2h_id_filter_ccx = c2h_id_filter_ccx_8723b;
13191318
}
13201319

13211320
void rtl8723b_InitAntenna_Selection(struct adapter *padapter)

drivers/staging/rtl8723bs/include/hal_intf.h

Lines changed: 0 additions & 1 deletion
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-
c2h_id_filter c2h_id_filter_ccx;
165164
};
166165

167166
#define RF_CHANGE_BY_INIT 0

0 commit comments

Comments
 (0)