Commit 30f1d370 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by David S. Miller

tools/virtio: switch to __ptr_ring_empty

We don't rely on lockless guarantees, but it
seems cleaner than inverting __ptr_ring_peek.
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a07d29c6
......@@ -187,7 +187,7 @@ bool enable_kick()
bool avail_empty()
{
return !__ptr_ring_peek(&array);
return __ptr_ring_empty(&array);
}
bool use_buf(unsigned *lenp, void **bufp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment