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; }