[media] stk1160: Remove unneeded struct vb2_queue clearing
authorEzequiel García <elezegarcia@gmail.com>
Thu, 23 Aug 2012 12:08:22 +0000 (09:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 15 Sep 2012 14:38:41 +0000 (11:38 -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/usb/stk1160/stk1160-v4l.c

index 1ad4ac1877273193e6e52cafb8efa72109a8f5ba..c414bc3570c50e91878649f77d23bde84a703ef6 100644 (file)
@@ -676,7 +676,6 @@ int stk1160_vb2_setup(struct stk1160 *dev)
        struct vb2_queue *q;
 
        q = &dev->vb_vidq;
-       memset(q, 0, sizeof(dev->vb_vidq));
        q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
        q->io_modes = VB2_READ | VB2_MMAP | VB2_USERPTR;
        q->drv_priv = dev;