Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx> --- src/qemu/qemu_monitor.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index 36b1f15c7d..b06c842a7a 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -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; } -- 2.31.1