]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - sound/core/pcm_native.c
[ALSA] Replace with kzalloc() - core stuff
[karo-tx-linux.git] / sound / core / pcm_native.c
index b829a27275593db015fb57f6c83fd909634672c5..67abebabf83e4afb1d9da5e69215adf7d3eee8ca 100644 (file)
@@ -2001,7 +2001,7 @@ static int snd_pcm_open_file(struct file *file,
        snd_assert(rpcm_file != NULL, return -EINVAL);
        *rpcm_file = NULL;
 
-       pcm_file = kcalloc(1, sizeof(*pcm_file), GFP_KERNEL);
+       pcm_file = kzalloc(sizeof(*pcm_file), GFP_KERNEL);
        if (pcm_file == NULL) {
                return -ENOMEM;
        }