qemuMonitorGetPRManagerInfo: Remove superfluous gotos

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Tim Wiederhake 2021-07-05 16:06:35 +02:00
parent cdcbdd25e1
commit 91fc0a36aa

View File

@ -4515,7 +4515,6 @@ int
qemuMonitorGetPRManagerInfo(qemuMonitor *mon,
GHashTable **retinfo)
{
int ret = -1;
g_autoptr(GHashTable) info = virHashNew(g_free);
*retinfo = NULL;
@ -4523,12 +4522,10 @@ qemuMonitorGetPRManagerInfo(qemuMonitor *mon,
QEMU_CHECK_MONITOR(mon);
if (qemuMonitorJSONGetPRManagerInfo(mon, info) < 0)
goto cleanup;
return -1;
*retinfo = g_steal_pointer(&info);
ret = 0;
cleanup:
return ret;
return 0;
}