mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Replace magic numeric offsets with mem::offset_of!() referencing the virtio_blk_discard_write_zeroes struct from the virtio-bindings crate when reading the sector, num_sectors and flags fields in the DISCARD and WRITE_ZEROES request handlers. No functional change. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>