mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemuMonitorGetChardevInfo: 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
317938165c
commit
9a4402dd91
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user