[media] pwc: Remove unneeded struct vb2_queue clearing
authorEzequiel Garcia <elezegarcia@gmail.com>
Thu, 23 Aug 2012 13:08:23 +0000 (10:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Sep 2012 20:42:15 +0000 (17:42 -0300)
struct vb2_queue is allocated through kzalloc as part of a larger struct,
there's no need to clear it.

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/pwc/pwc-if.c

index b5d0729c28d3f281e3fd292144e1f4fdfb692e18..42e36bac4d72a93add64b485652fc957bf0a30a3 100644 (file)
@@ -994,7 +994,6 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id
        pdev->power_save = my_power_save;
 
        /* Init videobuf2 queue structure */
-       memset(&pdev->vb_queue, 0, sizeof(pdev->vb_queue));
        pdev->vb_queue.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
        pdev->vb_queue.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ;
        pdev->vb_queue.drv_priv = pdev;