projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4614e51
)
virtio: tools: make it clear that virtqueue_add_buf() no longer returns > 0
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 16 Oct 2012 13:26:16 +0000
(23:56 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 18 Dec 2012 04:50:38 +0000
(15:20 +1030)
We simplified virtqueue_add_buf(), make it clear in the callers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/virtio/virtio_test.c
patch
|
blob
|
history
diff --git
a/tools/virtio/virtio_test.c
b/tools/virtio/virtio_test.c
index e626fa553c5ae1b2db0f044fe0c987e13e5af9ec..a11028acf219915cfc81785e4b79a1555b400a44 100644
(file)
--- a/
tools/virtio/virtio_test.c
+++ b/
tools/virtio/virtio_test.c
@@
-164,7
+164,7
@@
static void run_test(struct vdev_info *dev, struct vq_info *vq,
r = virtqueue_add_buf(vq->vq, &sl, 1, 0,
dev->buf + started,
GFP_ATOMIC);
- if (likely(r
>
= 0)) {
+ if (likely(r
=
= 0)) {
++started;
virtqueue_kick(vq->vq);
}
@@
-177,7
+177,7
@@
static void run_test(struct vdev_info *dev, struct vq_info *vq,
r = 0;
}
- } while (r
>
= 0);
+ } while (r
=
= 0);
if (completed == completed_before)
++spurious;
assert(completed <= bufs);