]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: remove function pointer c2h_id_filter
authorMichael Straube <straube.linux@gmail.com>
Tue, 15 Jul 2025 18:28:13 +0000 (20:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 07:38:45 +0000 (09:38 +0200)
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>
drivers/staging/rtl8723bs/hal/hal_intf.c
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/include/hal_intf.h

index dea38bb8424d740652d6d54dfb06ff353dea83ab..961b0563951d25f6f937fbfc5ef1c4735efacfc6 100644 (file)
@@ -303,7 +303,7 @@ s32 rtw_hal_c2h_handler(struct adapter *adapter, u8 *c2h_evt)
 
 c2h_id_filter rtw_hal_c2h_id_filter_ccx(struct adapter *adapter)
 {
-       return adapter->HalFunc.c2h_id_filter_ccx;
+       return c2h_id_filter_ccx_8723b;
 }
 
 s32 rtw_hal_macid_sleep(struct adapter *padapter, u32 macid)
index c35b0235d3c11c0b010d03b0cb306f84017fc760..1e9447633465ab8864c3633ed2f5aa06bf292b7a 100644 (file)
@@ -1315,7 +1315,6 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level)
 
 void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
 {
-       pHalFunc->c2h_id_filter_ccx = c2h_id_filter_ccx_8723b;
 }
 
 void rtl8723b_InitAntenna_Selection(struct adapter *padapter)
index d6fd692aedc8b54a7ae6e6f44b0665fa14df1cfb..248f54f04c5efbee0e07e455f17dfc3a7aeb5cb1 100644 (file)
@@ -161,7 +161,6 @@ enum hal_intf_ps_func {
 typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
 
 struct hal_ops {
-       c2h_id_filter c2h_id_filter_ccx;
 };
 
 #define RF_CHANGE_BY_INIT      0