Browse Source

virtio_ring: adapt to notify() returning bool

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

Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Heinz Graalfs 11 years ago
parent
commit
2342d6a651
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/virtio/virtio_ring.c

+ 1 - 1
drivers/virtio/virtio_ring.c

@@ -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;
 	}