diff --git a/vm_memory/src/guest_memory/sys/linux.rs b/vm_memory/src/guest_memory/sys/linux.rs index e3c0a2922e..265265bca3 100644 --- a/vm_memory/src/guest_memory/sys/linux.rs +++ b/vm_memory/src/guest_memory/sys/linux.rs @@ -55,7 +55,7 @@ impl GuestMemory { return; } - for (_, region) in self.regions.iter().enumerate() { + for region in self.regions.iter() { if mem_policy.contains(MemoryPolicy::USE_HUGEPAGES) { let ret = region.mapping.use_hugepages();