mirror of https://gitee.com/openkylin/libvirt.git
vz: fix vzCapsAddGuestDomain
There is a stray 'return -1' executed on all code paths.
Fixes: c18d9e23fa
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
b719d82f4a
commit
ac3e9f5efc
|
@ -85,8 +85,6 @@ vzCapsAddGuestDomain(virCaps *caps,
|
|||
|
||||
guest = virCapabilitiesAddGuest(caps, ostype, arch,
|
||||
emulator, NULL, 0, NULL);
|
||||
return -1;
|
||||
|
||||
|
||||
virCapabilitiesAddGuestDomain(guest, virt_type, NULL, NULL, 0, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue