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:
Tim Wiederhake 2021-07-06 14:37:57 +02:00 committed by Michal Privoznik
parent 317938165c
commit 9a4402dd91

View File

@ -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;