Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347464
b: refs/heads/master
c: 98e8c6b
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell committed Dec 18, 2012
1 parent 40a0a01 commit 4877e94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 49e86f16866fbf8e3c9a6b0770eb6f3c167f4b72
refs/heads/master: 98e8c6bc66048db6f921ccd5b24f0e09804cfcca
7 changes: 2 additions & 5 deletions trunk/drivers/virtio/virtio_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,7 @@ static int vring_add_indirect(struct vring_virtqueue *vq,
* Caller must ensure we don't call this with other virtqueue operations
* at the same time (except where noted).
*
* Returns remaining capacity of queue or a negative error
* (ie. ENOSPC). Note that it only really makes sense to treat all
* positive return values as "available": indirect buffers mean that
* we can put an entire sg[] array inside a single queue entry.
* Returns zero or a negative error (ie. ENOSPC, ENOMEM).
*/
int virtqueue_add_buf(struct virtqueue *_vq,
struct scatterlist sg[],
Expand Down Expand Up @@ -291,7 +288,7 @@ int virtqueue_add_buf(struct virtqueue *_vq,
pr_debug("Added buffer head %i to %p\n", head, vq);
END_USE(vq);

return vq->vq.num_free;
return 0;
}
EXPORT_SYMBOL_GPL(virtqueue_add_buf);

Expand Down

0 comments on commit 4877e94

Please sign in to comment.