mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Simplify return path of vm_boot
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
29881a2d6a
commit
707bb0ba72
+2
-4
@@ -503,12 +503,10 @@ impl Vmm {
|
|||||||
|
|
||||||
// Then we start the new VM.
|
// Then we start the new VM.
|
||||||
if let Some(ref mut vm) = self.vm {
|
if let Some(ref mut vm) = self.vm {
|
||||||
vm.boot()?;
|
vm.boot()
|
||||||
} else {
|
} else {
|
||||||
return Err(VmError::VmNotCreated);
|
Err(VmError::VmNotCreated)
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn vm_info(&self) -> result::Result<VmInfo, VmError> {
|
fn vm_info(&self) -> result::Result<VmInfo, VmError> {
|
||||||
|
|||||||
Reference in New Issue
Block a user