staging: rtl8723bs: remove function pointer c2h_handler
Remove function pointer c2h_handler and use c2h_handler_8723b directly to reduce code complexity. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20250715182814.212708-5-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
328463611a
commit
c9517302a0
@@ -308,11 +308,7 @@ bool rtw_hal_c2h_valid(struct adapter *adapter, u8 *buf)
|
||||
|
||||
s32 rtw_hal_c2h_handler(struct adapter *adapter, u8 *c2h_evt)
|
||||
{
|
||||
s32 ret = _FAIL;
|
||||
|
||||
if (adapter->HalFunc.c2h_handler)
|
||||
ret = adapter->HalFunc.c2h_handler(adapter, c2h_evt);
|
||||
return ret;
|
||||
return c2h_handler_8723b(adapter, c2h_evt);
|
||||
}
|
||||
|
||||
c2h_id_filter rtw_hal_c2h_id_filter_ccx(struct adapter *adapter)
|
||||
|
||||
@@ -1317,7 +1317,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
|
||||
{
|
||||
pHalFunc->xmit_thread_handler = &hal_xmit_handler;
|
||||
|
||||
pHalFunc->c2h_handler = c2h_handler_8723b;
|
||||
pHalFunc->c2h_id_filter_ccx = c2h_id_filter_ccx_8723b;
|
||||
|
||||
pHalFunc->fill_h2c_cmd = &FillH2CCmd8723B;
|
||||
|
||||
@@ -163,7 +163,6 @@ 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);
|
||||
s32 (*c2h_handler)(struct adapter *padapter, u8 *c2h_evt);
|
||||
c2h_id_filter c2h_id_filter_ccx;
|
||||
|
||||
s32 (*fill_h2c_cmd)(struct adapter *, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer);
|
||||
|
||||
Reference in New Issue
Block a user