From: Ján Tomko Date: Fri, 14 Jun 2019 18:05:44 +0000 (+0200) Subject: qemu: monitor: assume JSON in QEMU_CHECK_MONITOR macro X-Git-Tag: v5.5.0-rc1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6799b5279597b5f9ac4c0aa55b56defb56b1075a;p=thirdparty%2Flibvirt.git qemu: monitor: assume JSON in QEMU_CHECK_MONITOR macro In preparation to removing the json field from qemuMonitor, stop checking for it in QEMU_CHECK_MONITOR. Signed-off-by: Ján Tomko Acked-by: Peter Krempa --- diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index de4c31bc50..f629135503 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -133,13 +133,7 @@ struct _qemuMonitor { _("monitor must not be NULL")); \ exit; \ } \ - VIR_DEBUG("mon:%p vm:%p json:%d fd:%d", \ - mon, mon->vm, mon->json, mon->fd); \ - if (!mon->json) { \ - virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", \ - _("JSON monitor is required")); \ - exit; \ - } \ + VIR_DEBUG("mon:%p vm:%p fd:%d", mon, mon->vm, mon->fd); \ } while (0) /* Check monitor and return NULL on error */