Right now vb2_queue_init() returns always 0
and it will be changed to return void.

Signed-off-by: Ezequiel Garcia <elezegar...@gmail.com>
---
 drivers/media/platform/mem2mem_testdev.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/media/platform/mem2mem_testdev.c 
b/drivers/media/platform/mem2mem_testdev.c
index 9a8b14f..a2bd0b8 100644
--- a/drivers/media/platform/mem2mem_testdev.c
+++ b/drivers/media/platform/mem2mem_testdev.c
@@ -845,9 +845,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq, 
struct vb2_queue *ds
        src_vq->ops = &m2mtest_qops;
        src_vq->mem_ops = &vb2_vmalloc_memops;
 
-       ret = vb2_queue_init(src_vq);
-       if (ret)
-               return ret;
+       vb2_queue_init(src_vq);
 
        dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
        dst_vq->io_modes = VB2_MMAP;
@@ -856,7 +854,8 @@ static int queue_init(void *priv, struct vb2_queue *src_vq, 
struct vb2_queue *ds
        dst_vq->ops = &m2mtest_qops;
        dst_vq->mem_ops = &vb2_vmalloc_memops;
 
-       return vb2_queue_init(dst_vq);
+       vb2_queue_init(dst_vq);
+       return 0;
 }
 
 static const struct v4l2_ctrl_config m2mtest_ctrl_trans_time_msec = {
-- 
1.7.8.6

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to