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,
|
qemuMonitorGetChardevInfo(qemuMonitor *mon,
|
||||||
GHashTable **retinfo)
|
GHashTable **retinfo)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
GHashTable *info = NULL;
|
GHashTable *info = NULL;
|
||||||
|
|
||||||
VIR_DEBUG("retinfo=%p", retinfo);
|
VIR_DEBUG("retinfo=%p", retinfo);
|
||||||
@ -2894,9 +2893,7 @@ qemuMonitorGetChardevInfo(qemuMonitor *mon,
|
|||||||
if (!(info = virHashNew(qemuMonitorChardevInfoFree)))
|
if (!(info = virHashNew(qemuMonitorChardevInfoFree)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
ret = qemuMonitorJSONGetChardevInfo(mon, info);
|
if (qemuMonitorJSONGetChardevInfo(mon, info) < 0)
|
||||||
|
|
||||||
if (ret < 0)
|
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
*retinfo = info;
|
*retinfo = info;
|
||||||
|
Loading…
Reference in New Issue
Block a user