Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c11f187b authored by Ezequiel García's avatar Ezequiel García Committed by Mauro Carvalho Chehab
Browse files

[media] stk1160: 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: default avatarEzequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d89b9369
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;