mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04: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…
Reference in a new issue