]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuMonitorGetChardevInfo: Remove superfluous variable "ret"
authorTim Wiederhake <twiederh@redhat.com>
Tue, 6 Jul 2021 12:37:57 +0000 (14:37 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 13 Jul 2021 12:40:28 +0000 (14:40 +0200)
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_monitor.c

index f2c35ab1733352e022b8081c0b99d6303794d485..cb59fc7b7bc2c58fcc539672a68fc225471350e4 100644 (file)
@@ -2884,7 +2884,6 @@ int
 qemuMonitorGetChardevInfo(qemuMonitor *mon,
                           GHashTable **retinfo)
 {
-    int ret;
     GHashTable *info = NULL;
 
     VIR_DEBUG("retinfo=%p", retinfo);
@@ -2894,9 +2893,7 @@ qemuMonitorGetChardevInfo(qemuMonitor *mon,
     if (!(info = virHashNew(qemuMonitorChardevInfoFree)))
         goto error;
 
-    ret = qemuMonitorJSONGetChardevInfo(mon, info);
-
-    if (ret < 0)
+    if (qemuMonitorJSONGetChardevInfo(mon, info) < 0)
         goto error;
 
     *retinfo = info;