[ALSA] Conversions from kmalloc+memset to k(z|c)alloc
sound: Conversions from kmalloc+memset to k(c|z)alloc. Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:

committed by
Jaroslav Kysela

parent
fb6a0d635d
commit
59feddb25f
@@ -258,10 +258,9 @@ int __init snd_pmac_daca_init(struct snd_pmac *chip)
|
||||
request_module("i2c-powermac");
|
||||
#endif /* CONFIG_KMOD */
|
||||
|
||||
mix = kmalloc(sizeof(*mix), GFP_KERNEL);
|
||||
mix = kzalloc(sizeof(*mix), GFP_KERNEL);
|
||||
if (! mix)
|
||||
return -ENOMEM;
|
||||
memset(mix, 0, sizeof(*mix));
|
||||
chip->mixer_data = mix;
|
||||
chip->mixer_free = daca_cleanup;
|
||||
mix->amp_on = 1; /* default on */
|
||||
|
Reference in New Issue
Block a user