staging: rtl8723bs: remove function pointer xmit_thread_handler

Remove function pointer xmit_thread_handler and use
rtl8723bs_xmit_buf_handler directly to reduce code complexity.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20250715182814.212708-9-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Michael Straube
2025-07-15 20:28:11 +02:00
committed by Greg Kroah-Hartman
parent afbb082971
commit f742f77d96
3 changed files with 1 additions and 6 deletions

View File

@@ -285,9 +285,7 @@ void beacon_timing_control(struct adapter *padapter)
s32 rtw_hal_xmit_thread_handler(struct adapter *padapter)
{
if (padapter->HalFunc.xmit_thread_handler)
return padapter->HalFunc.xmit_thread_handler(padapter);
return _FAIL;
return rtl8723bs_xmit_buf_handler(padapter);
}
void rtw_hal_notch_filter(struct adapter *adapter, bool enable)

View File

@@ -1315,8 +1315,6 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level)
void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
{
pHalFunc->xmit_thread_handler = &rtl8723bs_xmit_buf_handler;
pHalFunc->c2h_id_filter_ccx = c2h_id_filter_ccx_8723b;
}

View File

@@ -161,7 +161,6 @@ enum hal_intf_ps_func {
typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
struct hal_ops {
s32 (*xmit_thread_handler)(struct adapter *padapter);
void (*hal_reset_security_engine)(struct adapter *adapter);
c2h_id_filter c2h_id_filter_ccx;
};