From: Michael S. Tsirkin Date: Thu, 25 Jan 2018 23:36:39 +0000 (+0200) Subject: tools/virtio: switch to __ptr_ring_empty X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=30f1d370744cc35f26d78a1dd31aeb0e4be93c38;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- diff --git a/tools/virtio/ringtest/ptr_ring.c b/tools/virtio/ringtest/ptr_ring.c index e6e81305ef46..477899c12c51 100644 --- a/tools/virtio/ringtest/ptr_ring.c +++ b/tools/virtio/ringtest/ptr_ring.c @@ -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)