Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx> --- src/qemu/qemu_domain.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index adbc63fdaa7f..939db02fe353 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -4208,7 +4208,6 @@ qemuDomainCheckDiskPresence(virQEMUDriverPtr driver, virDomainObjPtr vm, bool cold_boot) { - int ret = -1; size_t i; VIR_DEBUG("Checking for disk presence"); @@ -4235,13 +4234,10 @@ qemuDomainCheckDiskPresence(virQEMUDriverPtr driver, if (qemuDomainCheckDiskStartupPolicy(driver, vm, idx, cold_boot) >= 0) continue; - goto error; + return -1; } - ret = 0; - - error: - return ret; + return 0; } /* -- 2.9.2 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list