From: Ezequiel GarcĂ­a Date: Thu, 23 Aug 2012 12:08:24 +0000 (-0300) Subject: [media] vivi: Remove unneeded struct vb2_queue clearing X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e92347742704342ce1ce88e4a0d46b4d6897c629;p=linux-beck.git [media] vivi: Remove unneeded struct vb2_queue clearing 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/vivi.c b/drivers/media/platform/vivi.c index a6351c49bfd3..fca80193aa6e 100644 --- a/drivers/media/platform/vivi.c +++ b/drivers/media/platform/vivi.c @@ -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;