Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347469
b: refs/heads/master
c: de929b0
h: refs/heads/master
i:
  347467: c44dd6d
v: v3
  • Loading branch information
Rusty Russell committed Dec 18, 2012
1 parent ada85dc commit e92aa09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 4614e51cccca0eb42ff7b1b6383e2d07db42edc8
refs/heads/master: de929b04450f2ec984c2febb1249d0e0f993d0a2
4 changes: 2 additions & 2 deletions trunk/tools/virtio/virtio_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
Expand Down

0 comments on commit e92aa09

Please sign in to comment.