mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: Remove wrappers arounf vmalloc()
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
1f6c1424cc
commit
d57fc28a11
4 changed files with 8 additions and 16 deletions
|
@ -7738,7 +7738,7 @@ static int rtw_wx_set_priv(struct net_device *dev,
|
|||
return -EFAULT;
|
||||
|
||||
len = dwrq->length;
|
||||
ext = rtw_vmalloc(len);
|
||||
ext = vmalloc(len);
|
||||
if (!ext)
|
||||
return -ENOMEM;
|
||||
|
||||
|
@ -7750,7 +7750,7 @@ static int rtw_wx_set_priv(struct net_device *dev,
|
|||
|
||||
|
||||
#ifdef CONFIG_DEBUG_RTW_WX_SET_PRIV
|
||||
ext_dbg = rtw_vmalloc(len);
|
||||
ext_dbg = vmalloc(len);
|
||||
if (!ext_dbg) {
|
||||
rtw_vmfree(ext, len);
|
||||
return -ENOMEM;
|
||||
|
|
|
@ -62,15 +62,10 @@ u32 rtw_atoi(u8 *s)
|
|||
|
||||
}
|
||||
|
||||
inline u8 *_rtw_vmalloc(u32 sz)
|
||||
{
|
||||
return vmalloc(sz);
|
||||
}
|
||||
|
||||
inline u8 *_rtw_zvmalloc(u32 sz)
|
||||
{
|
||||
u8 *pbuf;
|
||||
pbuf = _rtw_vmalloc(sz);
|
||||
pbuf = vmalloc(sz);
|
||||
if (pbuf != NULL)
|
||||
memset(pbuf, 0, sz);
|
||||
return pbuf;
|
||||
|
@ -360,7 +355,7 @@ inline u8 *dbg_rtw_vmalloc(u32 sz, const enum mstat_f flags, const char *func, c
|
|||
if (match_mstat_sniff_rules(flags, sz))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
p = _rtw_vmalloc((sz));
|
||||
p = vmalloc((sz));
|
||||
|
||||
rtw_mstat_update(
|
||||
flags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue