mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 08:34:20 +00:00
rtl8188eu: Remove dead code for other PLATFORM_XX variables
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
a3ca3380b5
commit
bb27b28f6e
18 changed files with 4 additions and 652 deletions
|
@ -27,11 +27,6 @@
|
|||
#include <recv_osdep.h>
|
||||
#include <linux/vmalloc.h>
|
||||
#include <rtw_ioctl_set.h>
|
||||
#ifdef RTK_DMP_PLATFORM
|
||||
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12))
|
||||
#include <linux/pageremap.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE
|
||||
|
@ -93,13 +88,7 @@ u8* _rtw_malloc(u32 sz)
|
|||
{
|
||||
u8 *pbuf=NULL;
|
||||
|
||||
#ifdef RTK_DMP_PLATFORM
|
||||
if (sz > 0x4000)
|
||||
pbuf = (u8 *)dvr_malloc(sz);
|
||||
else
|
||||
#endif
|
||||
pbuf = kmalloc(sz,in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
|
||||
|
||||
pbuf = kmalloc(sz,in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
|
||||
return pbuf;
|
||||
}
|
||||
|
||||
|
@ -114,11 +103,6 @@ u8* _rtw_zmalloc(u32 sz)
|
|||
|
||||
void _rtw_mfree(u8 *pbuf, u32 sz)
|
||||
{
|
||||
#ifdef RTK_DMP_PLATFORM
|
||||
if (sz > 0x4000)
|
||||
dvr_free(pbuf);
|
||||
else
|
||||
#endif
|
||||
kfree(pbuf);
|
||||
}
|
||||
|
||||
|
@ -799,13 +783,6 @@ error:
|
|||
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PLATFORM_SPRD
|
||||
#ifdef do_div
|
||||
#undef do_div
|
||||
#endif
|
||||
#include <asm-generic/div64.h>
|
||||
#endif
|
||||
|
||||
u64 rtw_modular64(u64 x, u64 y)
|
||||
{
|
||||
return do_div(x, y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue