Messages in this thread | | | Subject | Re: [PATCH -next] aoe: Use kzalloc for allocating only one thing | From | Jens Axboe <> | Date | Tue, 29 Dec 2020 16:42:50 -0700 |
| |
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
| |