Skip to content

Commit

Permalink
[media] vivi: Remove unneeded struct vb2_queue clearing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ezequiel García authored and Mauro Carvalho Chehab committed Sep 15, 2012
1 parent c11f187 commit e923477
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/media/platform/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e923477

Please sign in to comment.