]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Move vm->persistent check into qemuDomainRemoveInactive
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 22 Sep 2015 13:25:00 +0000 (15:25 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Sep 2015 08:52:38 +0000 (10:52 +0200)
commitf41be2963517d82bac8e980a96abcfd6b5393bf1
tree979d78922562da5073142bbc75d977d7937bf784
parentc99b8cec82a53f091ca3de7532d305a93765b467
qemu: Move vm->persistent check into qemuDomainRemoveInactive

So far we have the following pattern occurring over and over
again:

  if (!vm->persistent)
      qemuDomainRemoveInactive(driver, vm);

It's safe to put the check into the function and save some LoC.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_process.c