[PATCH 3/6] ALSA: seq: oss: use kzalloc

Takashi Iwai tiwai at suse.de
Sun Mar 13 09:09:53 CET 2022


On Sat, 12 Mar 2022 11:27:02 +0100,
Julia Lawall wrote:
> 
> Use kzalloc instead of kmalloc + memset.
> 
> The semantic patch that makes this change is:
> (https://coccinelle.gitlabpages.inria.fr/website/)
> 
> //<smpl>
> @@
> expression res, size, flag;
> @@
> - res = kmalloc(size, flag);
> + res = kzalloc(size, flag);
>   ...
> - memset(res, 0, size);
> //</smpl>
> 
> Signed-off-by: Julia Lawall <Julia.Lawall at inria.fr>

Applied, thanks.


Takashi


More information about the Alsa-devel mailing list