diff options
author | Joel Stanley <joel@jms.id.au> | 2014-02-12 23:38:53 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-03-12 20:53:25 -0400 |
commit | be40d5ccab34d579512d932fc1c6cfaffe9d1551 (patch) | |
tree | 8f6b5045a291d4acbe15a7711c25fa906aa4e4fd /tools | |
parent | 6abb2dd92868927c1d680546b9d13f208373d517 (diff) |
tools/virtio: add a missing )
Fixes the following build failure:
cc -g -O2 -Wall -I. -I ../../usr/include/ -Wno-pointer-sign
-fno-strict-overflow -fno-strict-aliasing -fno-common -MMD
-U_FORTIFY_SOURCE -c -o virtio_test.o virtio_test.c
virtio_test.c: In function ‘run_test’:
virtio_test.c:176:7: error: expected ‘)’ before ‘r’
r = -1;
^
Fixes: 53c18c9906441 (virtio_test: verify if virtqueue_kick() succeeded)
Cc: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/virtio/virtio_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index bdb71a26ae35..00ea679b3826 100644 --- a/tools/virtio/virtio_test.c +++ b/tools/virtio/virtio_test.c | |||
@@ -172,7 +172,7 @@ static void run_test(struct vdev_info *dev, struct vq_info *vq, | |||
172 | GFP_ATOMIC); | 172 | GFP_ATOMIC); |
173 | if (likely(r == 0)) { | 173 | if (likely(r == 0)) { |
174 | ++started; | 174 | ++started; |
175 | if (unlikely(!virtqueue_kick(vq->vq)) | 175 | if (unlikely(!virtqueue_kick(vq->vq))) |
176 | r = -1; | 176 | r = -1; |
177 | } | 177 | } |
178 | } else | 178 | } else |