[libvirt PATCH] vz: fix vzCapsAddGuestDomain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a stray 'return -1' executed on all code paths.

Fixes: c18d9e23fafabcfbb80481e0705931036b8e7331
Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/vz/vz_driver.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c
index b47266290c..23b7795035 100644
--- a/src/vz/vz_driver.c
+++ b/src/vz/vz_driver.c
@@ -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);
 
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux