Re: [PATCH net-next] net/mlxfw: Use kzalloc for allocating only one thing
From: David Miller
Date: Tue Jan 05 2021 - 19:02:36 EST
From: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx>
Date: Wed, 30 Dec 2020 16:18:35 +0800
> 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>
Applied.