linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/10] stk1160: Remove unneeded struct vb2_queue clearing
@ 2012-08-23 13:08 Ezequiel Garcia
  2012-08-23 13:08 ` [PATCH 02/10] pwc: " Ezequiel Garcia
                   ` (8 more replies)
  0 siblings, 9 replies; 15+ messages in thread
From: Ezequiel Garcia @ 2012-08-23 13:08 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, linux-media; +Cc: Ezequiel Garcia

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>
---
 drivers/media/usb/stk1160/stk1160-v4l.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/media/usb/stk1160/stk1160-v4l.c b/drivers/media/usb/stk1160/stk1160-v4l.c
index cc5a95f..fe6e857 100644
--- a/drivers/media/usb/stk1160/stk1160-v4l.c
+++ b/drivers/media/usb/stk1160/stk1160-v4l.c
@@ -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;
-- 
1.7.8.6


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-09-09 21:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-23 13:08 [PATCH 01/10] stk1160: Remove unneeded struct vb2_queue clearing Ezequiel Garcia
2012-08-23 13:08 ` [PATCH 02/10] pwc: " Ezequiel Garcia
2012-09-09 21:57   ` Hans de Goede
2012-08-23 13:08 ` [PATCH 03/10] vivi: " Ezequiel Garcia
2012-08-23 13:08 ` [PATCH 04/10] mem2mem_testdev: Remove unneeded struct vb2_queue clear on queue_init() Ezequiel Garcia
2012-08-23 13:49   ` Sylwester Nawrocki
2012-08-23 14:04     ` Sylwester Nawrocki
2012-08-23 13:08 ` [PATCH 05/10] coda: " Ezequiel Garcia
2012-08-24  6:21   ` javier Martin
2012-08-23 13:08 ` [PATCH 06/10] mem2mem-deinterlace: " Ezequiel Garcia
2012-08-23 13:08 ` [PATCH 07/10] mem2mem-emmaprp: " Ezequiel Garcia
2012-08-24  6:22   ` javier Martin
2012-08-23 13:08 ` [PATCH 08/10] s5p-fimc: " Ezequiel Garcia
2012-08-23 13:08 ` [PATCH 09/10] s5p-jpeg: " Ezequiel Garcia
2012-08-23 13:08 ` [PATCH 10/10] s5p-g2d: " Ezequiel Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).