diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 5dc521f6e415538889a77d487cc15012c660383e..f0a70e4f1b47806bc4ad300c6dc69d42cdc1cc88 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -4217,7 +4217,6 @@ qemuDomainCheckDiskPresence(virQEMUDriverPtr driver, virDomainObjPtr vm, bool cold_boot) { - int ret = -1; size_t i; VIR_DEBUG("Checking for disk presence"); @@ -4244,13 +4243,10 @@ qemuDomainCheckDiskPresence(virQEMUDriverPtr driver, if (qemuDomainCheckDiskStartupPolicy(driver, vm, idx, cold_boot) >= 0) continue; - goto error; + return -1; } - ret = 0; - - error: - return ret; + return 0; } /*