mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Fix clippy issue
error: all if blocks contain the same code at the end
--> vmm/src/memory_manager.rs:884:9
|
884 | / Ok(mm)
885 | | }
| |_________^
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
@@ -878,11 +878,9 @@ impl MemoryManager {
|
||||
}
|
||||
|
||||
mm.lock().unwrap().fill_saved_regions(saved_regions)?;
|
||||
|
||||
Ok(mm)
|
||||
} else {
|
||||
Ok(mm)
|
||||
}
|
||||
|
||||
Ok(mm)
|
||||
}
|
||||
|
||||
fn memfd_create(name: &ffi::CStr, flags: u32) -> Result<RawFd, io::Error> {
|
||||
|
||||
Reference in New Issue
Block a user