mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
a07d29c672
commit
30f1d37074
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue