qemuMonitorGetBlockInfo: Remove superfluous variable "ret"

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Tim Wiederhake 2021-07-06 14:37:54 +02:00 committed by Michal Privoznik
parent 1067bf55fe
commit b1dd164b1a

View 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;
}