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:
parent
e97be65e65
commit
da71790bbd
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user