Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be40d5cc authored by Joel Stanley's avatar Joel Stanley Committed by Rusty Russell
Browse files

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: 53c18c99 (virtio_test: verify if virtqueue_kick() succeeded)
Cc: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 6abb2dd9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -172,7 +172,7 @@ static void run_test(struct vdev_info *dev, struct vq_info *vq,
							 GFP_ATOMIC);
							 GFP_ATOMIC);
				if (likely(r == 0)) {
				if (likely(r == 0)) {
					++started;
					++started;
					if (unlikely(!virtqueue_kick(vq->vq))
					if (unlikely(!virtqueue_kick(vq->vq)))
						r = -1;
						r = -1;
				}
				}
			} else
			} else