mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 14:35:25 +00:00
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 <jtomko@redhat.com> Acked-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
7bf679aec6
commit
6799b52795
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user