mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
staging: rtl8723au: We love wrappers!
Get rid of pointless wrapper around a simple kfree() Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1aaa37613f
commit
db20a02baf
@@ -28,11 +28,6 @@ void rtw_hal_chip_configure23a(struct rtw_adapter *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)
|
||||
{
|
||||
if (padapter->HalFunc.InitSwLeds)
|
||||
|
||||
@@ -427,14 +427,6 @@ void rtl8723a_InitializeFirmwareVars(struct rtw_adapter *padapter)
|
||||
pHalData->LastHMEBoxNum = 0;
|
||||
}
|
||||
|
||||
static void rtl8723a_free_hal_data(struct rtw_adapter *padapter)
|
||||
{
|
||||
|
||||
kfree(padapter->HalData);
|
||||
padapter->HalData = NULL;
|
||||
|
||||
}
|
||||
|
||||
/* */
|
||||
/* Efuse related code */
|
||||
/* */
|
||||
@@ -1714,8 +1706,6 @@ exit:
|
||||
|
||||
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_channel_handler = &PHY_SwChnl8723A;
|
||||
|
||||
|
||||
@@ -65,8 +65,6 @@ struct hal_ops {
|
||||
u32 (*hal_init)(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_recv_priv)(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 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_deinit23a(struct rtw_adapter *padapter);
|
||||
|
||||
|
||||
@@ -584,7 +584,8 @@ u8 rtw_free_drv_sw23a(struct rtw_adapter *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"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user