Skip to content

Commit 3827020

Browse files
committed
queue: Ensure the use of Descriptor accessors
Ensure that we're using the Descriptor accessors everywhere, instead of accessing its fields directly. This is needed for the next commit, where we'll be fixing the endianess of each field on its accessor. Signed-off-by: Sergio Lopez <slp@redhat.com>
1 parent d991cd2 commit 3827020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/virtio-queue/src/descriptor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl Descriptor {
6868
/// If this is false, this descriptor is read only.
6969
/// Write only means the the emulated device can write and the driver can read.
7070
pub fn is_write_only(&self) -> bool {
71-
self.flags & VIRTQ_DESC_F_WRITE != 0
71+
self.flags() & VIRTQ_DESC_F_WRITE != 0
7272
}
7373
}
7474

0 commit comments

Comments
 (0)