Skip to content

Commit

Permalink
virtio_ring: adapt to notify() returning bool
Browse files Browse the repository at this point in the history
Correct if statement to check for bool returned by notify()
(introduced in 5b1bf7c).

Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Heinz Graalfs authored and Rusty Russell committed Nov 5, 2013
1 parent 047b9b9 commit 2342d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/virtio/virtio_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2342d6a

Please sign in to comment.