[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <da043bd3-8446-d0bc-bbbc-b3996afce4b8@kernel.dk>
Date: Tue, 29 Dec 2020 16:42:50 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Zheng Yongjun <zhengyongjun3@...wei.com>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: justin@...aid.com
Subject: Re: [PATCH -next] aoe: Use kzalloc for allocating only one thing
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
Powered by blists - more mailing lists