From 8f956ee71a84ed1d6eb52b47b30fe4142f282827 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 2 Apr 2019 13:31:52 +0200 Subject: [PATCH] qemu: Remove cleanup section of virQEMUCapsInitQMPMonitorTCG There's nothing to clean up. Signed-off-by: Peter Krempa --- src/qemu/qemu_capabilities.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 67cdb8ab96..b55274955e 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -4392,17 +4392,13 @@ int virQEMUCapsInitQMPMonitorTCG(virQEMUCapsPtr qemuCaps, qemuMonitorPtr mon) { - int ret = -1; - if (virQEMUCapsProbeQMPCPUDefinitions(qemuCaps, mon, true) < 0) - goto cleanup; + return -1; if (virQEMUCapsProbeQMPHostCPU(qemuCaps, mon, true) < 0) - goto cleanup; + return -1; - ret = 0; - cleanup: - return ret; + return 0; } -- GitLab