]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuMonitorGetBlockInfo: Remove superfluous variable "ret"
authorTim Wiederhake <twiederh@redhat.com>
Tue, 6 Jul 2021 12:37:54 +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 dd0658f93c6c91444d4c5691702cfa91c200d9b6..933d4a015491f24683751fa129b1be6b1994cdcd 100644 (file)
@@ -2103,7 +2103,6 @@ qemuDomainDiskInfoFree(void *value)
 GHashTable *
 qemuMonitorGetBlockInfo(qemuMonitor *mon)
 {
-    int ret;
     GHashTable *table;
 
     QEMU_CHECK_MONITOR_NULL(mon);
@@ -2111,9 +2110,7 @@ qemuMonitorGetBlockInfo(qemuMonitor *mon)
     if (!(table = virHashNew(qemuDomainDiskInfoFree)))
         return NULL;
 
-    ret = qemuMonitorJSONGetBlockInfo(mon, table);
-
-    if (ret < 0) {
+    if (qemuMonitorJSONGetBlockInfo(mon, table) < 0) {
         virHashFree(table);
         return NULL;
     }