]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Refactor qemuDomainSetVcpusFlags
authorPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2012 11:53:20 +0000 (13:53 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 11 May 2012 14:40:05 +0000 (16:40 +0200)
commite99ad93d028cf7a63fb9ffd7a620dc00b0d54fce
tree1568785024d85df5838007eb49f8a3fef6aaf80c
parentc0057d9a49f6aead9a893c33069d2a11c03bc1e8
qemu: Refactor qemuDomainSetVcpusFlags

This patch changes a switch statement into ifs when handling live vs.
configuration modifications getting rid of redundant code in case when
both live and persistent configuration gets changed.
src/qemu/qemu_driver.c