diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-19 08:18:03 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-12-19 09:40:26 +0100 |
commit | ef86f581f7e8b29cb58d7f4e892e1a91b3805124 (patch) | |
tree | ef8e68bc136b24f6fd0bfee26b45f653123d38d9 /sound/isa | |
parent | d6a89fefa50feda5516cd5210ad0008a44632b52 (diff) | |
download | op-kernel-dev-ef86f581f7e8b29cb58d7f4e892e1a91b3805124.zip op-kernel-dev-ef86f581f7e8b29cb58d7f4e892e1a91b3805124.tar.gz |
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>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/msnd/msnd_midi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/msnd/msnd_midi.c b/sound/isa/msnd/msnd_midi.c index cb9aa4c..4be562b 100644 --- a/sound/isa/msnd/msnd_midi.c +++ b/sound/isa/msnd/msnd_midi.c @@ -162,7 +162,7 @@ int snd_msndmidi_new(struct snd_card *card, int device) err = snd_rawmidi_new(card, "MSND-MIDI", device, 1, 1, &rmidi); if (err < 0) return err; - mpu = kcalloc(1, sizeof(*mpu), GFP_KERNEL); + mpu = kzalloc(sizeof(*mpu), GFP_KERNEL); if (mpu == NULL) { snd_device_free(card, rmidi); return -ENOMEM; |