Commit db20a02b authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: We love wrappers!

Get rid of pointless wrapper around a simple kfree()
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1aaa3761
...@@ -28,11 +28,6 @@ void rtw_hal_chip_configure23a(struct rtw_adapter *padapter) ...@@ -28,11 +28,6 @@ void rtw_hal_chip_configure23a(struct rtw_adapter *padapter)
padapter->HalFunc.intf_chip_configure(padapter); padapter->HalFunc.intf_chip_configure(padapter);
} }
void rtw_hal_free_data23a(struct rtw_adapter *padapter)
{
if (padapter->HalFunc.free_hal_data)
padapter->HalFunc.free_hal_data(padapter);
}
void rtw_hal_sw_led_init23a(struct rtw_adapter *padapter) void rtw_hal_sw_led_init23a(struct rtw_adapter *padapter)
{ {
if (padapter->HalFunc.InitSwLeds) if (padapter->HalFunc.InitSwLeds)
......
...@@ -427,14 +427,6 @@ void rtl8723a_InitializeFirmwareVars(struct rtw_adapter *padapter) ...@@ -427,14 +427,6 @@ void rtl8723a_InitializeFirmwareVars(struct rtw_adapter *padapter)
pHalData->LastHMEBoxNum = 0; pHalData->LastHMEBoxNum = 0;
} }
static void rtl8723a_free_hal_data(struct rtw_adapter *padapter)
{
kfree(padapter->HalData);
padapter->HalData = NULL;
}
/* */ /* */
/* Efuse related code */ /* Efuse related code */
/* */ /* */
...@@ -1714,8 +1706,6 @@ s32 c2h_handler_8723a(struct rtw_adapter *padapter, struct c2h_evt_hdr *c2h_evt) ...@@ -1714,8 +1706,6 @@ s32 c2h_handler_8723a(struct rtw_adapter *padapter, struct c2h_evt_hdr *c2h_evt)
void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc) void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc)
{ {
pHalFunc->free_hal_data = &rtl8723a_free_hal_data;
pHalFunc->set_bwmode_handler = &PHY_SetBWMode23a8723A; pHalFunc->set_bwmode_handler = &PHY_SetBWMode23a8723A;
pHalFunc->set_channel_handler = &PHY_SwChnl8723A; pHalFunc->set_channel_handler = &PHY_SwChnl8723A;
......
...@@ -65,8 +65,6 @@ struct hal_ops { ...@@ -65,8 +65,6 @@ struct hal_ops {
u32 (*hal_init)(struct rtw_adapter *padapter); u32 (*hal_init)(struct rtw_adapter *padapter);
u32 (*hal_deinit)(struct rtw_adapter *padapter); u32 (*hal_deinit)(struct rtw_adapter *padapter);
void (*free_hal_data)(struct rtw_adapter *padapter);
s32 (*init_xmit_priv)(struct rtw_adapter *padapter); s32 (*init_xmit_priv)(struct rtw_adapter *padapter);
s32 (*init_recv_priv)(struct rtw_adapter *padapter); s32 (*init_recv_priv)(struct rtw_adapter *padapter);
...@@ -173,8 +171,6 @@ void rtw_hal_def_value_init23a(struct rtw_adapter *padapter); ...@@ -173,8 +171,6 @@ void rtw_hal_def_value_init23a(struct rtw_adapter *padapter);
int pm_netdev_open23a(struct net_device *pnetdev, u8 bnormal); int pm_netdev_open23a(struct net_device *pnetdev, u8 bnormal);
int rtw_resume_process23a(struct rtw_adapter *padapter); int rtw_resume_process23a(struct rtw_adapter *padapter);
void rtw_hal_free_data23a(struct rtw_adapter *padapter);
void rtw_hal_sw_led_init23a(struct rtw_adapter *padapter); void rtw_hal_sw_led_init23a(struct rtw_adapter *padapter);
void rtw_hal_sw_led_deinit23a(struct rtw_adapter *padapter); void rtw_hal_sw_led_deinit23a(struct rtw_adapter *padapter);
......
...@@ -584,7 +584,8 @@ u8 rtw_free_drv_sw23a(struct rtw_adapter *padapter) ...@@ -584,7 +584,8 @@ u8 rtw_free_drv_sw23a(struct rtw_adapter *padapter)
rtw_free_pwrctrl_priv(padapter); rtw_free_pwrctrl_priv(padapter);
rtw_hal_free_data23a(padapter); kfree(padapter->HalData);
padapter->HalData = NULL;
RT_TRACE(_module_os_intfs_c_, _drv_info_, ("<== rtw_free_drv_sw23a\n")); RT_TRACE(_module_os_intfs_c_, _drv_info_, ("<== rtw_free_drv_sw23a\n"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment