提交 c42cabef 编写于 作者: V vignesh.babu@wipro.com 提交者: Mauro Carvalho Chehab

V4L/DVB (5526): Cx88-alsa.c: Use kzalloc

Replacing kmalloc/memset combination with kzalloc.
Signed-off-by: Nvignesh babu <vignesh.babu@wipro.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 3153bd91
无相关合并请求
......@@ -414,11 +414,9 @@ static int snd_cx88_hw_params(struct snd_pcm_substream * substream,
dprintk(1,"Setting buffer\n");
buf = kmalloc(sizeof(*buf),GFP_KERNEL);
buf = kzalloc(sizeof(*buf),GFP_KERNEL);
if (NULL == buf)
return -ENOMEM;
memset(buf,0,sizeof(*buf));
buf->vb.memory = V4L2_MEMORY_MMAP;
buf->vb.width = chip->period_size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部