qemu: Remove cleanup section of virQEMUCapsInitQMPMonitorTCG

There's nothing to clean up.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Peter Krempa 2019-04-02 13:31:52 +02:00
parent e125000a88
commit 8f956ee71a

View File

@ -4392,17 +4392,13 @@ int
virQEMUCapsInitQMPMonitorTCG(virQEMUCapsPtr qemuCaps, virQEMUCapsInitQMPMonitorTCG(virQEMUCapsPtr qemuCaps,
qemuMonitorPtr mon) qemuMonitorPtr mon)
{ {
int ret = -1;
if (virQEMUCapsProbeQMPCPUDefinitions(qemuCaps, mon, true) < 0) if (virQEMUCapsProbeQMPCPUDefinitions(qemuCaps, mon, true) < 0)
goto cleanup; return -1;
if (virQEMUCapsProbeQMPHostCPU(qemuCaps, mon, true) < 0) if (virQEMUCapsProbeQMPHostCPU(qemuCaps, mon, true) < 0)
goto cleanup; return -1;
ret = 0; return 0;
cleanup:
return ret;
} }