mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemuMonitorGetPRManagerInfo: Remove superfluous goto
s
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
cdcbdd25e1
commit
91fc0a36aa
@ -4515,7 +4515,6 @@ int
|
|||||||
qemuMonitorGetPRManagerInfo(qemuMonitor *mon,
|
qemuMonitorGetPRManagerInfo(qemuMonitor *mon,
|
||||||
GHashTable **retinfo)
|
GHashTable **retinfo)
|
||||||
{
|
{
|
||||||
int ret = -1;
|
|
||||||
g_autoptr(GHashTable) info = virHashNew(g_free);
|
g_autoptr(GHashTable) info = virHashNew(g_free);
|
||||||
|
|
||||||
*retinfo = NULL;
|
*retinfo = NULL;
|
||||||
@ -4523,12 +4522,10 @@ qemuMonitorGetPRManagerInfo(qemuMonitor *mon,
|
|||||||
QEMU_CHECK_MONITOR(mon);
|
QEMU_CHECK_MONITOR(mon);
|
||||||
|
|
||||||
if (qemuMonitorJSONGetPRManagerInfo(mon, info) < 0)
|
if (qemuMonitorJSONGetPRManagerInfo(mon, info) < 0)
|
||||||
goto cleanup;
|
return -1;
|
||||||
|
|
||||||
*retinfo = g_steal_pointer(&info);
|
*retinfo = g_steal_pointer(&info);
|
||||||
ret = 0;
|
return 0;
|
||||||
cleanup:
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user