[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>
This commit is contained in:
committed by
Jaroslav Kysela
parent
8648811f1d
commit
ca2c096656
@@ -321,7 +321,7 @@ int snd_pcm_lib_malloc_pages(snd_pcm_substream_t *substream, size_t size)
|
||||
if (substream->dma_buffer.area != NULL && substream->dma_buffer.bytes >= size) {
|
||||
dmab = &substream->dma_buffer; /* use the pre-allocated buffer */
|
||||
} else {
|
||||
dmab = kcalloc(1, sizeof(*dmab), GFP_KERNEL);
|
||||
dmab = kzalloc(sizeof(*dmab), GFP_KERNEL);
|
||||
if (! dmab)
|
||||
return -ENOMEM;
|
||||
dmab->dev = substream->dma_buffer.dev;
|
||||
|
Reference in New Issue
Block a user