Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242071
b: refs/heads/master
c: 72f1fc3
h: refs/heads/master
i:
  242069: 5833c30
  242067: 3dfab4c
  242063: b96163f
v: v3
  • Loading branch information
Marek Szyprowski authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent d68df90 commit 0bc89d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31901a078af29c33c736dcbf815656920e904632
refs/heads/master: 72f1fc33a76a115e8c67f7b052bd7f6e129cda50
8 changes: 2 additions & 6 deletions trunk/drivers/media/video/videobuf2-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static void __vb2_free_mem(struct vb2_queue *q)
* and return the queue to an uninitialized state. Might be called even if the
* queue has already been freed.
*/
static int __vb2_queue_free(struct vb2_queue *q)
static void __vb2_queue_free(struct vb2_queue *q)
{
unsigned int buffer;

Expand All @@ -251,8 +251,6 @@ static int __vb2_queue_free(struct vb2_queue *q)

q->num_buffers = 0;
q->memory = 0;

return 0;
}

/**
Expand Down Expand Up @@ -505,9 +503,7 @@ int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req)
return -EBUSY;
}

ret = __vb2_queue_free(q);
if (ret != 0)
return ret;
__vb2_queue_free(q);

/*
* In case of REQBUFS(0) return immediately without calling
Expand Down

0 comments on commit 0bc89d1

Please sign in to comment.