diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-09-09 08:20:23 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-09-12 04:47:59 -0400 |
commit | ca2c0966562cfbf9273167a5b60e8fddc24078d6 (patch) | |
tree | 0292047f4cd0a24e1b24914081ebe890bb535877 /sound/core/init.c | |
parent | 8648811f1db85eeacb821591ef11a2c229c29aa0 (diff) |
[ALSA] Replace with kzalloc() - core stuff
Control Midlevel,ALSA Core,HWDEP Midlevel,PCM Midlevel,RawMidi Midlevel
Timer Midlevel,ALSA<-OSS emulation
Replace kcalloc(1,..) with kzalloc().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/init.c')
-rw-r--r-- | sound/core/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index c9c9929121d5..a5702014a704 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -72,7 +72,7 @@ snd_card_t *snd_card_new(int idx, const char *xid, | |||
72 | 72 | ||
73 | if (extra_size < 0) | 73 | if (extra_size < 0) |
74 | extra_size = 0; | 74 | extra_size = 0; |
75 | card = kcalloc(1, sizeof(*card) + extra_size, GFP_KERNEL); | 75 | card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL); |
76 | if (card == NULL) | 76 | if (card == NULL) |
77 | return NULL; | 77 | return NULL; |
78 | if (xid) { | 78 | if (xid) { |
@@ -702,7 +702,7 @@ static int snd_generic_device_register(snd_card_t *card) | |||
702 | if (card->generic_dev) | 702 | if (card->generic_dev) |
703 | return 0; /* already registered */ | 703 | return 0; /* already registered */ |
704 | 704 | ||
705 | dev = kcalloc(1, sizeof(*dev), GFP_KERNEL); | 705 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
706 | if (! dev) { | 706 | if (! dev) { |
707 | snd_printk(KERN_ERR "can't allocate generic_device\n"); | 707 | snd_printk(KERN_ERR "can't allocate generic_device\n"); |
708 | return -ENOMEM; | 708 | return -ENOMEM; |