virtio_ring: adapt to notify() returning bool
Correct if statement to check for bool returned by notify()
(introduced in 5b1bf7cb67
).
Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
047b9b9495
commit
2342d6a651
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue