mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
staging: rtl8723bs: remove wrapper rtw_hal_free_data()
Remove unnecessary wrapper and call rtw_hal_data_deinit() function directly to simplify code. Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com> Link: https://patch.msgid.link/20260419072034.19824-6-nikolayof23@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
43f292e667
commit
afeb5b6de9
|
|
@ -7,12 +7,6 @@
|
|||
#include <drv_types.h>
|
||||
#include <hal_data.h>
|
||||
|
||||
void rtw_hal_free_data(struct adapter *padapter)
|
||||
{
|
||||
/* free HAL Data */
|
||||
rtw_hal_data_deinit(padapter);
|
||||
}
|
||||
|
||||
void rtw_hal_dm_init(struct adapter *padapter)
|
||||
{
|
||||
rtl8723b_init_dm_priv(padapter);
|
||||
|
|
|
|||
|
|
@ -181,8 +181,6 @@ typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
|
|||
#define RX_PNOWakeUp 0x55
|
||||
#define AP_WakeUp 0x66
|
||||
|
||||
void rtw_hal_free_data(struct adapter *padapter);
|
||||
|
||||
void rtw_hal_dm_init(struct adapter *padapter);
|
||||
|
||||
uint rtw_hal_init(struct adapter *padapter);
|
||||
|
|
|
|||
|
|
@ -737,7 +737,7 @@ u8 rtw_free_drv_sw(struct adapter *padapter)
|
|||
|
||||
/* kfree((void *)padapter); */
|
||||
|
||||
rtw_hal_free_data(padapter);
|
||||
rtw_hal_data_deinit(padapter);
|
||||
|
||||
/* free the old_pnetdev */
|
||||
if (padapter->rereg_nd_name_priv.old_pnetdev) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user