]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuProcessSetupPid: Use @numatune variable more
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 19 May 2023 12:02:01 +0000 (14:02 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 23 May 2023 15:21:16 +0000 (17:21 +0200)
commitc4a7f8007cd8628cf38096ea3a6cbbf5fd37b6bb
tree8a65caf26f05d7e19c23fb94a921e032d4bd0828
parent1bb439e4b0609aac0cd6ee3b1c0f5a5fcff0cc67
qemuProcessSetupPid: Use @numatune variable more

Inside of qemuProcessSetupPid() there's @numatune variable which
is set to vm->def->numa, but it lives only in one block. In the
rest of places the expanded form (vm->def->numa) is used instead.
Move the variable declaration at the beginning of the function
and use it instead of the expanded form.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_process.c