mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Remove wrapper around vfree
This call is so simple that there is no need, or use, for a wrapper. Link: https://lore.kernel.org/r/20210805183717.23007-3-Larry.Finger@lwfinger.net
This commit is contained in:
committed by
Carlos Garcés
parent
4d3d23dd24
commit
34ec238387
@@ -1399,7 +1399,7 @@ free_adapter:
|
||||
#ifdef RTW_HALMAC
|
||||
rtw_halmac_deinit_adapter(dvobj);
|
||||
#endif
|
||||
rtw_vmfree((u8 *)padapter, sizeof(*padapter));
|
||||
vfree((u8 *)padapter);
|
||||
padapter = NULL;
|
||||
}
|
||||
exit:
|
||||
@@ -1459,7 +1459,7 @@ static void rtw_usb_primary_adapter_deinit(_adapter *padapter)
|
||||
rtw_halmac_deinit_adapter(adapter_to_dvobj(padapter));
|
||||
#endif /* RTW_HALMAC */
|
||||
|
||||
rtw_vmfree((u8 *)padapter, sizeof(_adapter));
|
||||
vfree(padapter);
|
||||
|
||||
#ifdef CONFIG_PLATFORM_RTD2880B
|
||||
RTW_INFO("wlan link down\n");
|
||||
|
||||
Reference in New Issue
Block a user