diff options
author | Heinz Graalfs <graalfs@linux.vnet.ibm.com> | 2013-11-05 21:20:27 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-11-05 21:21:08 +1030 |
commit | 2342d6a6512ce5a3d2433bf77e6580e738cfd709 (patch) | |
tree | 66005d245197a08f7ca940907879947dd596de93 /drivers/virtio | |
parent | 047b9b94951dba2e93c65a582ae2bce25c960b86 (diff) | |
download | op-kernel-dev-2342d6a6512ce5a3d2433bf77e6580e738cfd709.zip op-kernel-dev-2342d6a6512ce5a3d2433bf77e6580e738cfd709.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index f477775..28b5338 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; } |