From 85ada737b9d9ede7dbb17e831d3b4bb187dc1915 Mon Sep 17 00:00:00 2001 From: Victor Lambret Date: Wed, 21 May 2014 06:48:43 -0300 Subject: [PATCH] [media] videobuf2-core: remove duplicated code Remove duplicated test of buffer presence at streamon Signed-off-by: Victor Lambret Acked-by: Marek Szyprowski Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/v4l2-core/videobuf2-core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index 6489c991700a..349e659d75fb 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++ b/drivers/media/v4l2-core/videobuf2-core.c @@ -2151,10 +2151,6 @@ static int vb2_internal_streamon(struct vb2_queue *q, enum v4l2_buf_type type) return -EINVAL; } - if (!q->num_buffers) { - dprintk(1, "no buffers have been allocated\n"); - return -EINVAL; - } if (q->num_buffers < q->min_buffers_needed) { dprintk(1, "need at least %u allocated buffers\n", q->min_buffers_needed); -- 2.20.1