mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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:
parent
1067bf55fe
commit
b1dd164b1a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user