Skip to content

Commit

Permalink
tools/virtio: add a missing )
Browse files Browse the repository at this point in the history
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: 53c18c9 (virtio_test: verify if virtqueue_kick() succeeded)
Cc: Heinz Graalfs <[email protected]>
Signed-off-by: Joel Stanley <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
shenki authored and rustyrussell committed Mar 13, 2014
1 parent 6abb2dd commit be40d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/virtio/virtio_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static void run_test(struct vdev_info *dev, struct vq_info *vq,
GFP_ATOMIC);
if (likely(r == 0)) {
++started;
if (unlikely(!virtqueue_kick(vq->vq))
if (unlikely(!virtqueue_kick(vq->vq)))
r = -1;
}
} else
Expand Down

0 comments on commit be40d5c

Please sign in to comment.