mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-19 02:54:00 +08: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
@ -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 New Issue
Block a user