mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
media: pci: dt3155: Remove useless check
min_buffers_needed is already set to 2 so remove this useless check. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> Reviewed-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
595f445b8f
commit
cf605a01f0
|
|
@ -128,8 +128,6 @@ dt3155_queue_setup(struct vb2_queue *vq,
|
|||
struct dt3155_priv *pd = vb2_get_drv_priv(vq);
|
||||
unsigned size = pd->width * pd->height;
|
||||
|
||||
if (vq->num_buffers + *nbuffers < 2)
|
||||
*nbuffers = 2 - vq->num_buffers;
|
||||
if (*num_planes)
|
||||
return sizes[0] < size ? -EINVAL : 0;
|
||||
*num_planes = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user