]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process.c: removing qemuProcessStartValidateXML
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 14 Nov 2018 19:52:07 +0000 (17:52 -0200)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 15 Nov 2018 21:39:16 +0000 (16:39 -0500)
commit91afd53cb88c083d82771171d7293a65092fa564
tree79d8bea955573c72d250c1b46965460e32411b76
parent9c2fbe97c6ea974b92a363a7e7a83f2e985995ce
qemu_process.c: removing qemuProcessStartValidateXML

Commit ("qemu_domain.c: moving maxCpu validation to
qemuDomainDefValidate") shortened the code of qemuProcessStartValidateXML.
The function is called only by qemuProcessStartValidate, in the
same file, and its code is now a single check that calls virDomainDefValidate.

Instead of leaving a function call just to execute a single check,
this patch puts the check in the body of qemuProcessStartValidate in the
place where qemuProcessStartValidateXML was being called. The function can
now be removed.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_process.c