Re: [PATCH -next] aoe: Use kzalloc for allocating only one thing

From: Jens Axboe
Date: Tue Dec 29 2020 - 18:49:22 EST


On 12/29/20 6:51 AM, 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>

Should probably fix up that missing set of () while at it.

--
Jens Axboe