mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
[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: Ezequiel Garcia <elezegarcia@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
d89b9369e0
commit
c11f187bd0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user