From: Tim Wiederhake Date: Tue, 6 Jul 2021 12:37:54 +0000 (+0200) Subject: qemuMonitorGetBlockInfo: Remove superfluous variable "ret" X-Git-Tag: v7.6.0-rc1~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1dd164b1ad03f945fbaa7dd3ffe0271fb2fd5d8;p=thirdparty%2Flibvirt.git qemuMonitorGetBlockInfo: Remove superfluous variable "ret" Signed-off-by: Tim Wiederhake Reviewed-by: Michal Privoznik --- diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index dd0658f93c..933d4a0154 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -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; }