提交 2342d6a6 编写于 作者: H Heinz Graalfs 提交者: Rusty Russell

virtio_ring: adapt to notify() returning bool

Correct if statement to check for bool returned by notify()
(introduced in 5b1bf7cb).
Signed-off-by: NHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 047b9b94
...@@ -441,7 +441,7 @@ bool virtqueue_notify(struct virtqueue *_vq) ...@@ -441,7 +441,7 @@ bool virtqueue_notify(struct virtqueue *_vq)
return false; return false;
/* Prod other side to tell it about changes. */ /* Prod other side to tell it about changes. */
if (vq->notify(_vq) < 0) { if (!vq->notify(_vq)) {
vq->broken = true; vq->broken = true;
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册