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/pcm_native.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/pcm_native.c')
-rw-r--r-- | sound/core/pcm_native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index b829a2727559..67abebabf83e 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -2001,7 +2001,7 @@ static int snd_pcm_open_file(struct file *file, | |||
2001 | snd_assert(rpcm_file != NULL, return -EINVAL); | 2001 | snd_assert(rpcm_file != NULL, return -EINVAL); |
2002 | *rpcm_file = NULL; | 2002 | *rpcm_file = NULL; |
2003 | 2003 | ||
2004 | pcm_file = kcalloc(1, sizeof(*pcm_file), GFP_KERNEL); | 2004 | pcm_file = kzalloc(sizeof(*pcm_file), GFP_KERNEL); |
2005 | if (pcm_file == NULL) { | 2005 | if (pcm_file == NULL) { |
2006 | return -ENOMEM; | 2006 | return -ENOMEM; |
2007 | } | 2007 | } |