mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-08 07:14:03 +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
@@ -389,12 +389,12 @@ void odm_free_memory(struct dm_struct *dm, void *ptr, u32 length)
|
||||
#elif (DM_ODM_SUPPORT_TYPE & ODM_CE) && defined(DM_ODM_CE_MAC80211_V2)
|
||||
kfree(ptr);
|
||||
#elif (DM_ODM_SUPPORT_TYPE & ODM_CE)
|
||||
rtw_vmfree(ptr, length);
|
||||
vfree(ptr);
|
||||
#elif (DM_ODM_SUPPORT_TYPE & ODM_WIN)
|
||||
/* struct void* adapter = dm->adapter; */
|
||||
PlatformFreeMemory(ptr, length);
|
||||
#elif (DM_ODM_SUPPORT_TYPE & ODM_IOT)
|
||||
rtw_vmfree(ptr, length);
|
||||
vfree(ptr);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user