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

Commit 2342d6a6 authored by Heinz Graalfs's avatar Heinz Graalfs Committed by Rusty Russell
Browse files

virtio_ring: adapt to notify() returning bool



Correct if statement to check for bool returned by notify()
(introduced in 5b1bf7cb).

Signed-off-by: default avatarHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 047b9b94
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -441,7 +441,7 @@ bool virtqueue_notify(struct virtqueue *_vq)
		return false;

	/* Prod other side to tell it about changes. */
	if (vq->notify(_vq) < 0) {
	if (!vq->notify(_vq)) {
		vq->broken = true;
		return false;
	}