aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvignesh.babu@wipro.com <vignesh.babu@wipro.com>2007-04-16 09:34:33 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 14:45:40 -0400
commitc42cabefce5a333d8158434f902117d8c8dfd3b0 (patch)
tree5390969e6efb6b71930c56f4637c96dad6c83742
parent3153bd91bfe14b6b93aef5b6b7c9fc279eec60d9 (diff)
V4L/DVB (5526): Cx88-alsa.c: Use kzalloc
Replacing kmalloc/memset combination with kzalloc. Signed-off-by: vignesh babu <vignesh.babu@wipro.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/cx88/cx88-alsa.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c
index 6c22ec4b0836..3956c257556c 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,
414 414
415 dprintk(1,"Setting buffer\n"); 415 dprintk(1,"Setting buffer\n");
416 416
417 buf = kmalloc(sizeof(*buf),GFP_KERNEL); 417 buf = kzalloc(sizeof(*buf),GFP_KERNEL);
418 if (NULL == buf) 418 if (NULL == buf)
419 return -ENOMEM; 419 return -ENOMEM;
420 memset(buf,0,sizeof(*buf));
421
422 420
423 buf->vb.memory = V4L2_MEMORY_MMAP; 421 buf->vb.memory = V4L2_MEMORY_MMAP;
424 buf->vb.width = chip->period_size; 422 buf->vb.width = chip->period_size;