1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

qemuConnectStealCPUModelFromInfo: Drop needless 'cleanup' label

Previous commit rendered 'cleanup' label and @ret variable
redundant. The same result can be achieved by returning 0/-1
directly.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
This commit is contained in:
Michal Privoznik 2021-11-01 10:37:11 +01:00
parent e97be65e65
commit da71790bbd

View File

@ -12398,7 +12398,6 @@ qemuConnectStealCPUModelFromInfo(virCPUDef *dst,
{
g_autoptr(qemuMonitorCPUModelInfo) info = NULL;
size_t i;
int ret = -1;
virCPUDefFreeModel(dst);
@ -12413,13 +12412,10 @@ qemuConnectStealCPUModelFromInfo(virCPUDef *dst,
continue;
if (virCPUDefAddFeature(dst, name, VIR_CPU_FEATURE_REQUIRE) < 0)
goto cleanup;
return -1;
}
ret = 0;
cleanup:
return ret;
return 0;
}