Re: [PATCH v4] staging: rtl8723bs: Replace kzalloc with kzalloc_obj

From: Dan Carpenter

Date: Mon Feb 23 2026 - 00:36:00 EST


On Sun, Feb 22, 2026 at 09:20:18PM +0500, Mariyam Shahid wrote:
> Replace kzalloc() using sizeof(*ptr) with kzalloc_obj()
> to fix respective checkpatch warnings.
>
> Reviewed-by: Ethan Tidmore <ethantidmore06@xxxxxxxxx>
> Signed-off-by: Mariyam Shahid <mariyam.shahid135@xxxxxxxxx>
> ---
>
> v4: added changelog
> v3: rebased on staging-next, kzalloc_obj now available in this tree
> v2: switched to kzalloc_obj as suggested by Dan Carpenter
> v1: initial submission


I don't remember suggesting anything... But, sure, looks good.

Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

regards,
dan carpenter