Skip to content

Commit

Permalink
[media] stk1160: 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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
ezequielgarcia authored and Mauro Carvalho Chehab committed Sep 15, 2012
1 parent d89b936 commit c11f187
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/media/usb/stk1160/stk1160-v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c11f187

Please sign in to comment.