Re: [PATCH -next] RDMA/rw: Use kzalloc for allocating only one thing

From: Jason Gunthorpe
Date: Thu Jan 07 2021 - 15:50:22 EST


On Tue, Dec 29, 2020 at 09:52:23PM +0800, Zheng Yongjun wrote:
> Use kzalloc rather than kcalloc(1,...)
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> // <smpl>
> @@
> @@
>
> - kcalloc(1,
> + kzalloc(
> ...)
> // </smpl>
>
> Signed-off-by: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx>
> ---
> drivers/infiniband/core/rw.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

I applied this one and

iw_cxgb4: Use kzalloc for allocating only one thing

Together as one commit to for-next, thanks

Jason