[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201230104940.GA386343@shredder.lan>
Date: Wed, 30 Dec 2020 12:49:40 +0200
From: Ido Schimmel <idosch@...sch.org>
To: Zheng Yongjun <zhengyongjun3@...wei.com>
Cc: davem@...emloft.net, kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, mlxsw@...dia.com
Subject: Re: [PATCH net-next] net/mlxfw: Use kzalloc for allocating only one
thing
On Wed, Dec 30, 2020 at 04:18:35PM +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@...wei.com>
Reviewed-by: Ido Schimmel <idosch@...dia.com>
Thanks
Powered by blists - more mailing lists