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:
Bo Chen 2021-09-08 11:44:57 -07:00 committed by Bo Chen
parent d64a77a5c6
commit 4f37a273d9

View File

@ -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> {