aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_ring.c
diff options
context:
space:
mode:
authorHeinz Graalfs <graalfs@linux.vnet.ibm.com>2013-11-05 05:50:27 -0500
committerRusty Russell <rusty@rustcorp.com.au>2013-11-05 05:51:08 -0500
commit2342d6a6512ce5a3d2433bf77e6580e738cfd709 (patch)
tree66005d245197a08f7ca940907879947dd596de93 /drivers/virtio/virtio_ring.c
parent047b9b94951dba2e93c65a582ae2bce25c960b86 (diff)
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>
Diffstat (limited to 'drivers/virtio/virtio_ring.c')
-rw-r--r--drivers/virtio/virtio_ring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index f47777582ce5..28b5338fff71 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -441,7 +441,7 @@ bool virtqueue_notify(struct virtqueue *_vq)
441 return false; 441 return false;
442 442
443 /* Prod other side to tell it about changes. */ 443 /* Prod other side to tell it about changes. */
444 if (vq->notify(_vq) < 0) { 444 if (!vq->notify(_vq)) {
445 vq->broken = true; 445 vq->broken = true;
446 return false; 446 return false;
447 } 447 }