diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-03-04 05:27:13 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 05:56:38 -0400 |
commit | 0647064293d745720fc62e2edc7734fa8af06adf (patch) | |
tree | b8e1092039c7a3a10ef3102b8bf1ee4fc028f75e /drivers/media/pci | |
parent | b5b4541eef8eac83f5c0d166d8e494f7c9fff202 (diff) |
[media] vb2: change result code of buf_finish to void
The buf_finish op should always work, so change the return type to void.
Update the few drivers that use it.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Reviewed-by: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/sta2x11/sta2x11_vip.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/pci/sta2x11/sta2x11_vip.c b/drivers/media/pci/sta2x11/sta2x11_vip.c index e5cfb6cfa18d..e66556cae7ea 100644 --- a/drivers/media/pci/sta2x11/sta2x11_vip.c +++ b/drivers/media/pci/sta2x11/sta2x11_vip.c | |||
@@ -327,7 +327,7 @@ static void buffer_queue(struct vb2_buffer *vb) | |||
327 | } | 327 | } |
328 | spin_unlock(&vip->lock); | 328 | spin_unlock(&vip->lock); |
329 | } | 329 | } |
330 | static int buffer_finish(struct vb2_buffer *vb) | 330 | static void buffer_finish(struct vb2_buffer *vb) |
331 | { | 331 | { |
332 | struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue); | 332 | struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue); |
333 | struct vip_buffer *vip_buf = to_vip_buffer(vb); | 333 | struct vip_buffer *vip_buf = to_vip_buffer(vb); |
@@ -338,8 +338,6 @@ static int buffer_finish(struct vb2_buffer *vb) | |||
338 | spin_unlock(&vip->lock); | 338 | spin_unlock(&vip->lock); |
339 | 339 | ||
340 | vip_active_buf_next(vip); | 340 | vip_active_buf_next(vip); |
341 | |||
342 | return 0; | ||
343 | } | 341 | } |
344 | 342 | ||
345 | static int start_streaming(struct vb2_queue *vq, unsigned int count) | 343 | static int start_streaming(struct vb2_queue *vq, unsigned int count) |