Thread (133 messages) 133 messages, 6 authors, 2023-11-10

Re: [PATCH v14 21/56] media: pci: dt3155: Remove useless check

From: Andrzej Pietrasiewicz <hidden>
Date: 2023-11-09 10:03:43
Also in: linux-arm-msm, linux-media, linux-mediatek, linux-rockchip, linux-staging, lkml

W dniu 31.10.2023 o 17:30, Benjamin Gaignard pisze:
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 <redacted>
quoted hunk ↗ jump to hunk
---
  drivers/media/pci/dt3155/dt3155.c | 2 --
  1 file changed, 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;

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help