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