提交 6799b527 编写于 作者: J Ján Tomko

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: NJán Tomko <jtomko@redhat.com>
Acked-by: NPeter Krempa <pkrempa@redhat.com>
上级 7bf679ae
...@@ -133,13 +133,7 @@ struct _qemuMonitor { ...@@ -133,13 +133,7 @@ struct _qemuMonitor {
_("monitor must not be NULL")); \ _("monitor must not be NULL")); \
exit; \ exit; \
} \ } \
VIR_DEBUG("mon:%p vm:%p json:%d fd:%d", \ VIR_DEBUG("mon:%p vm:%p fd:%d", mon, mon->vm, mon->fd); \
mon, mon->vm, mon->json, mon->fd); \
if (!mon->json) { \
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", \
_("JSON monitor is required")); \
exit; \
} \
} while (0) } while (0)
/* Check monitor and return NULL on error */ /* Check monitor and return NULL on error */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册