summaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorHeinz Graalfs <graalfs@linux.vnet.ibm.com>2013-11-05 21:20:27 +1030
committerRusty Russell <rusty@rustcorp.com.au>2013-11-05 21:21:08 +1030
commit2342d6a6512ce5a3d2433bf77e6580e738cfd709 (patch)
tree66005d245197a08f7ca940907879947dd596de93 /drivers/virtio
parent047b9b94951dba2e93c65a582ae2bce25c960b86 (diff)
downloadlinux-2342d6a6512ce5a3d2433bf77e6580e738cfd709.tar.gz
linux-2342d6a6512ce5a3d2433bf77e6580e738cfd709.tar.bz2
linux-2342d6a6512ce5a3d2433bf77e6580e738cfd709.zip
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')
-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)
return false;
/* Prod other side to tell it about changes. */
- if (vq->notify(_vq) < 0) {
+ if (!vq->notify(_vq)) {
vq->broken = true;
return false;
}