vm-virtio: queue: Fix comment for DescriptorChain::has_next()

This returns trues if this descriptor has another descriptor linked to
it. Not whether this descriptor chain has another one following it.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-03-24 15:15:30 +00:00 committed by Sebastien Boeuf
parent 6170ba06d1
commit 46d082763f

View File

@ -272,7 +272,7 @@ impl<'a> DescriptorChain<'a> {
|| (self.has_next() && self.next >= self.table_size))
}
/// Gets if this descriptor chain has another descriptor chain linked after it.
/// Gets if this descriptor has another descriptor linked after it.
pub fn has_next(&self) -> bool {
self.flags & VIRTQ_DESC_F_NEXT != 0 && self.ttl > 1
}