summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>2023-11-09 19:34:37 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-11-23 14:10:54 +0300
commitcf605a01f03e0aae9ee5df5ab5acaf2877b62e3f (patch)
treeac6eafe5d1085207e8c7ce0223e25f1381d81dde
parent595f445b8f061d1cde2acdef8dfe59c832c20939 (diff)
downloadlinux-cf605a01f03e0aae9ee5df5ab5acaf2877b62e3f.tar.xz
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>
-rw-r--r--drivers/media/pci/dt3155/dt3155.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/pci/dt3155/dt3155.c b/drivers/media/pci/dt3155/dt3155.c
index 548156b199cc..d09cde2f6ee4 100644
--- a/drivers/media/pci/dt3155/dt3155.c
+++ b/drivers/media/pci/dt3155/dt3155.c
@@ -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;