Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
tools/virtio: switch to __ptr_ring_empty
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mstsirkin authored and davem330 committed Jan 29, 2018
1 parent a07d29c commit 30f1d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/virtio/ringtest/ptr_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 30f1d37

Please sign in to comment.