virtio_ring: adapt to notify() returning bool
authorHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Tue, 5 Nov 2013 10:50:27 +0000 (21:20 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 5 Nov 2013 10:51:08 +0000 (21:21 +1030)
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>
drivers/virtio/virtio_ring.c

index f477775..28b5338 100644 (file)
@@ -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;
        }