X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sound%2Fsynth%2Femux%2Femux.c;h=0476d0655686476e6741981ca83d28ae2faf74a7;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=155df152ca1255e7af583457120acfb3107479b5;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/sound/synth/emux/emux.c b/sound/synth/emux/emux.c index 155df152c..0476d0655 100644 --- a/sound/synth/emux/emux.c +++ b/sound/synth/emux/emux.c @@ -39,7 +39,7 @@ int snd_emux_new(snd_emux_t **remu) snd_emux_t *emu; *remu = NULL; - emu = snd_magic_kcalloc(snd_emux_t, 0, GFP_KERNEL); + emu = kcalloc(1, sizeof(*emu), GFP_KERNEL); if (emu == NULL) return -ENOMEM; @@ -77,7 +77,7 @@ int snd_emux_register(snd_emux_t *emu, snd_card_t *card, int index, char *name) emu->card = card; emu->name = snd_kmalloc_strdup(name, GFP_KERNEL); - emu->voices = snd_kcalloc(sizeof(snd_emux_voice_t) * emu->max_voices, GFP_KERNEL); + emu->voices = kcalloc(emu->max_voices, sizeof(snd_emux_voice_t), GFP_KERNEL); if (emu->voices == NULL) return -ENOMEM; @@ -143,7 +143,7 @@ int snd_emux_free(snd_emux_t *emu) if (emu->name) kfree(emu->name); - snd_magic_kfree(emu); + kfree(emu); return 0; }