From: vignesh.babu@wipro.com Date: Mon, 16 Apr 2007 13:34:33 +0000 (-0300) Subject: V4L/DVB (5526): Cx88-alsa.c: Use kzalloc X-Git-Tag: accepted/tizen/common/20141203.182822~32103^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c42cabefce5a333d8158434f902117d8c8dfd3b0;p=platform%2Fkernel%2Flinux-arm64.git V4L/DVB (5526): Cx88-alsa.c: Use kzalloc Replacing kmalloc/memset combination with kzalloc. Signed-off-by: vignesh babu Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c index 6c22ec4..3956c25 100644 --- a/drivers/media/video/cx88/cx88-alsa.c +++ b/drivers/media/video/cx88/cx88-alsa.c @@ -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;