[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>
Esse commit está contido em:

commit de
Jaroslav Kysela

pai
fb6a0d635d
commit
59feddb25f
@@ -1316,10 +1316,9 @@ int __init snd_pmac_tumbler_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));
|
||||
mix->headphone_irq = -1;
|
||||
|
||||
chip->mixer_data = mix;
|
||||
|
Referência em uma nova issue
Block a user