diff options
author | Victor Lambret <victor.lambret.ext@parrot.com> | 2014-05-21 09:48:43 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-05-24 20:03:15 (GMT) |
commit | 85ada737b9d9ede7dbb17e831d3b4bb187dc1915 (patch) | |
tree | 16295154e08099a43fbb541ea6393312e744c6ab | |
parent | 96787eb4bc2401a2dc849a91e7f3154b9f696eb0 (diff) | |
download | linux-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.c | 4 |
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 6489c99..349e659 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); |