Re: [PATCH v4 4/4] staging: rtl8723bs: remove unused allocation wrapper functions

From: Andy Shevchenko

Date: Tue Feb 03 2026 - 10:16:13 EST


On Sun, Feb 01, 2026 at 04:30:01AM +0900, Minu Jin wrote:
> All memory allocation call sites have been migrated to kernel
> APIs (kmalloc, kzalloc, and skb functions). Therefore, the custom

kmalloc()
kzalloc()

> wrapper layer is no longer necessary.
>
> This patch removes all redundant wrapper functions and macros from
> osdep_service.c and include/osdep_service.h, including unused macros
> like rtw_skb_alloc_f.

rtw_skb_alloc_f()

...

> -void *_rtw_zmalloc(u32 sz)
> -{
> - void *pbuf = kmalloc(sz, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
> - if (pbuf)
> - memset(pbuf, 0, sz);
> -
> - return pbuf;

This change should remove the _original_ implementation, so no need to have a
churn to first convert this and then remove it.

> -}

--
With Best Regards,
Andy Shevchenko