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)
commitef86f581f7e8b29cb58d7f4e892e1a91b3805124
treeef8e68bc136b24f6fd0bfee26b45f653123d38d9
parentd6a89fefa50feda5516cd5210ad0008a44632b52
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