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