]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] vivi: Remove unneeded struct vb2_queue clearing
authorEzequiel García <elezegarcia@gmail.com>
Thu, 23 Aug 2012 12:08:24 +0000 (09:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 15 Sep 2012 14:41:44 +0000 (11:41 -0300)
struct vb2_queue is allocated through kzalloc as part of a larger struct,
there's no need to clear it.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/vivi.c

index a6351c49bfd31defc899d2dd171a7060cba876b6..fca80193aa6e41f88c3539500e1f3623f025f43d 100644 (file)
@@ -1306,7 +1306,6 @@ static int __init vivi_create_instance(int inst)
 
        /* initialize queue */
        q = &dev->vb_vidq;
-       memset(q, 0, sizeof(dev->vb_vidq));
        q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
        q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ;
        q->drv_priv = dev;