Re: [PATCH v2 14/27] mtd: nand: use kzalloc instead of kmalloc and memset
From: Miquel Raynal
Date: Fri Jun 28 2019 - 14:36:57 EST
On Fri, 2019-06-28 at 02:48:13 UTC, Fuqian Huang wrote:
> Replace kmalloc followed by a memset with kzalloc.
>
> There is a recommendation to use zeroing allocator
> rather than allocator followed by memset with 0 in
> ./scripts/coccinelle/api/alloc/zalloc-simple.cocci
>
> Signed-off-by: Fuqian Huang <huangfq.daxian@xxxxxxxxx>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel