[libvirt PATCH 04/10] qemuMonitorGetPRManagerInfo: Remove superfluous `goto`s

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux