From: Jens Axboe <axboe@kernel.dk>
To: Zheng Yongjun <zhengyongjun3@huawei.com>,
linux-block@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: justin@coraid.com
Subject: Re: [PATCH -next] aoe: Use kzalloc for allocating only one thing
Date: Tue, 29 Dec 2020 16:42:50 -0700 [thread overview]
Message-ID: <da043bd3-8446-d0bc-bbbc-b3996afce4b8@kernel.dk> (raw)
In-Reply-To: <20201229135120.23537-1-zhengyongjun3@huawei.com>
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
prev parent reply other threads:[~2020-12-29 23:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-29 13:51 Zheng Yongjun
2020-12-29 23:42 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=da043bd3-8446-d0bc-bbbc-b3996afce4b8@kernel.dk \
--to=axboe@kernel.dk \
--cc=justin@coraid.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zhengyongjun3@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome