]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Use kzalloc for allocating only one thing
authorJulia Lawall <julia@diku.dk>
Sat, 19 Dec 2009 07:18:03 +0000 (08:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 19 Dec 2009 08:40:26 +0000 (09:40 +0100)
commit396e2a46828ca515bc00b83cc42afef1ca98f3dc
treeef8e68bc136b24f6fd0bfee26b45f653123d38d9
parenta12b7e060ff76faf69cecc8c19b3d533f68831fb
ALSA: Use kzalloc for allocating only one thing

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: Julia Lawall <julia@diku.dk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/msnd/msnd_midi.c
sound/pci/hda/patch_realtek.c