]> xenbits.xensource.com Git - libvirt.git/commit
conf: remove NULL check from virDomainQemuMonitorEventNew
authorJán Tomko <jtomko@redhat.com>
Mon, 11 Nov 2019 09:21:03 +0000 (10:21 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 21 Nov 2019 11:44:23 +0000 (12:44 +0100)
commit5e067ba4e16350272e6a9c33940b56cc6eb9dd9a
tree0cd6b803753e56b4958d0903808b490d30d6934d
parent7611a1ef002422c438c2e16fb2ce0d3034280253
conf: remove NULL check from virDomainQemuMonitorEventNew

The qemu_domain_monitor_event_msg struct in qemu_protocol.x
defines event as a nonnull_string and qemuMonitorJSONIOProcessEvent
also errors out on a non-NULL event.

Drop the check to fix the build with static analysis.

This essentially reverts commit d343e8203d248635f5e7a0d86dd077f74d49e3af

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_event.c
src/conf/domain_event.h