mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 15:57:56 -05:00
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:
committed by
Greg Kroah-Hartman
parent
afbb082971
commit
f742f77d96
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user