[PATCH] videobuf2-v4l2: Fix return with value warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit 10cc3b1e1296 ("videobuf2-core: fill_user_buffer and
copy_timestamp should return void") forgot one return statement from the
videobuf2-v4l2 implementations of copy_timestamp and fill_user_buffer.
Remove them.

Fixes: 10cc3b1e1296 ("videobuf2-core: fill_user_buffer and copy_timestamp should return void")
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx>
---
 drivers/media/v4l2-core/videobuf2-v4l2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/v4l2-core/videobuf2-v4l2.c b/drivers/media/v4l2-core/videobuf2-v4l2.c
index a15cd1b4c7f0..bbbd8e1b1a99 100644
--- a/drivers/media/v4l2-core/videobuf2-v4l2.c
+++ b/drivers/media/v4l2-core/videobuf2-v4l2.c
@@ -121,7 +121,7 @@ static void __copy_timestamp(struct vb2_buffer *vb, const void *pb)
 	struct vb2_queue *q = vb->vb2_queue;
 
 	if (!pb)
-		return 0;
+		return;
 
 	if (q->is_output) {
 		/*
@@ -197,7 +197,7 @@ static void __fill_v4l2_buffer(struct vb2_buffer *vb, void *pb)
 	unsigned int plane;
 
 	if (!pb)
-		return 0;
+		return;
 
 	/* Copy back data such as timestamp, flags, etc. */
 	b->index = vb->index;
-- 
2.4.10

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



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux