videobuf2-core: Change vb2_queue_init return type to void
Subsystems (2)
RFC PATCH 1/1 videobuf2-core: Change vb2_queue_init return type to void
Cc Pawel Osciak <[email protected]>
Cc Marek Szyprowski <[email protected]>
Cc Kyungmin Park <[email protected]>
Cc Hans Verkuil <[email protected]>
Cc Guennadi Liakhovetski <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Signed-off-by Ezequiel Garcia <[email protected]>
--- drivers/media/v4l2-core/videobuf2-core.c | 3 +-- include/media/videobuf2-core.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/media/v4l2-core/videobuf2-core.c +1 -2
@@ -1736,7 +1736,7 @@ EXPORT_SYMBOL_GPL(vb2_poll);* to the struct vb2_queue description in include/media/videobuf2-core.h * for more information. */ -int vb2_queue_init (struct vb2_queue *q) +void vb2_queue_init (struct vb2_queue *q) {BUG_ON (!q);BUG_ON (!q->ops);
@@ -1755,7 +1755,6 @@ int vb2_queue_init(struct vb2_queue *q)if (q->buf_struct_size ==0 ) q->buf_struct_size =sizeof (struct vb2_buffer ); -return 0 ; }EXPORT_SYMBOL_GPL (vb2_queue_init);
include/media/videobuf2-core.h +1 -1
@@ -324,7 +324,7 @@ int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req);int vb2_create_bufs (struct vb2_queue *q,struct v4l2_create_buffers *create);int vb2_prepare_buf (struct vb2_queue *q,struct v4l2_buffer *b); -int vb2_queue_init (struct vb2_queue *q); +void vb2_queue_init (struct vb2_queue *q);void vb2_queue_release (struct vb2_queue *q);
Signature · 1 line
1.7.8.6