summaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorHeinz Graalfs <graalfs@linux.vnet.ibm.com>2013-11-05 11:50:27 +0100
committerRusty Russell <rusty@rustcorp.com.au>2013-11-05 11:51:08 +0100
commit2342d6a6512ce5a3d2433bf77e6580e738cfd709 (patch)
tree66005d245197a08f7ca940907879947dd596de93 /drivers/virtio
parentvirtio_net: verify if queue is broken after virtqueue_get_buf() (diff)
downloadlinux-2342d6a6512ce5a3d2433bf77e6580e738cfd709.tar.xz
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;
}