1
0
Fork 0

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: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
hifive-unleashed-5.1
Michael S. Tsirkin 2018-01-26 01:36:39 +02:00 committed by David S. Miller
parent a07d29c672
commit 30f1d37074
1 changed files with 1 additions and 1 deletions

View File

@ -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)