diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-16 10:34:33 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-16 10:34:33 -0300 |
commit | 0ad1bcbf3bb203b6371244f31044c2e68cabcd01 (patch) | |
tree | 8c9b9fd96508b62673a372d2752df5ea0710ee8d /linux/drivers/media/video/cx88/cx88-alsa.c | |
parent | 43d55e928f7b7bc1f2195f7b9997529c7864fb95 (diff) | |
download | mediapointer-dvb-s2-0ad1bcbf3bb203b6371244f31044c2e68cabcd01.tar.gz mediapointer-dvb-s2-0ad1bcbf3bb203b6371244f31044c2e68cabcd01.tar.bz2 |
Cx88-alsa.c: Use kzalloc
From: vignesh.babu@wipro.com <vignesh.babu@wipro.com>
Replacing kmalloc/memset combination with kzalloc.
Signed-off-by: vignesh babu <vignesh.babu@wipro.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-alsa.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-alsa.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-alsa.c b/linux/drivers/media/video/cx88/cx88-alsa.c index 1cc8c372f..5091913d3 100644 --- a/linux/drivers/media/video/cx88/cx88-alsa.c +++ b/linux/drivers/media/video/cx88/cx88-alsa.c @@ -468,11 +468,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; |