]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5526): Cx88-alsa.c: Use kzalloc
authorvignesh.babu@wipro.com <vignesh.babu@wipro.com>
Mon, 16 Apr 2007 13:34:33 +0000 (10:34 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 27 Apr 2007 18:45:40 +0000 (15:45 -0300)
Replacing kmalloc/memset combination with kzalloc.

Signed-off-by: vignesh babu <vignesh.babu@wipro.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-alsa.c

index 6c22ec4b0836efbb5ffcdbd4d6aebb0fa666a072..3956c257556c215b039bf6dda76d8e57c35ed1f0 100644 (file)
@@ -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;