summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Lambret <victor.lambret.ext@parrot.com>2014-05-21 13:48:43 +0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-25 00:03:15 +0400
commit85ada737b9d9ede7dbb17e831d3b4bb187dc1915 (patch)
tree16295154e08099a43fbb541ea6393312e744c6ab
parent96787eb4bc2401a2dc849a91e7f3154b9f696eb0 (diff)
downloadlinux-85ada737b9d9ede7dbb17e831d3b4bb187dc1915.tar.xz
[media] videobuf2-core: remove duplicated code
Remove duplicated test of buffer presence at streamon Signed-off-by: Victor Lambret <victor.lambret.ext@parrot.com> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/v4l2-core/videobuf2-core.c4
1 files changed, 0 insertions, 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);