mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-04 19:11:11 +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:
parent
d64a77a5c6
commit
4f37a273d9
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user