summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorvignesh.babu@wipro.com2007-04-16 15:34:33 +0200
committerMauro Carvalho Chehab2007-04-27 20:45:40 +0200
commitc42cabefce5a333d8158434f902117d8c8dfd3b0 (patch)
tree5390969e6efb6b71930c56f4637c96dad6c83742 /drivers
parentV4L/DVB (5525): Usbvision: fix confusion over 7-bit vs 8-bit TDDA9887 addresses (diff)
downloadkernel-qcow2-linux-c42cabefce5a333d8158434f902117d8c8dfd3b0.tar.gz
kernel-qcow2-linux-c42cabefce5a333d8158434f902117d8c8dfd3b0.tar.xz
kernel-qcow2-linux-c42cabefce5a333d8158434f902117d8c8dfd3b0.zip
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>
Diffstat (limited to 'drivers')
-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,
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;