Fixes: 4c0398b5284d14c55eca51095673b6fadbbd85fb Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx> --- Pushed as trivial. src/qemu/qemu_process.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 1006f41614..ec6ca14bbd 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -2653,7 +2653,7 @@ qemuProcessSetupPid(virDomainObjPtr vm, virDomainNumatuneMemMode mem_mode; virCgroupPtr cgroup = NULL; virBitmapPtr use_cpumask = NULL; - virBitmapPtr afinity_cpumask = NULL; + virBitmapPtr affinity_cpumask = NULL; g_autoptr(virBitmap) hostcpumap = NULL; g_autofree char *mem_mask = NULL; int ret = -1; @@ -2679,7 +2679,7 @@ qemuProcessSetupPid(virDomainObjPtr vm, * its config file */ if (qemuProcessGetAllCpuAffinity(&hostcpumap) < 0) goto cleanup; - afinity_cpumask = hostcpumap; + affinity_cpumask = hostcpumap; } /* @@ -2720,11 +2720,11 @@ qemuProcessSetupPid(virDomainObjPtr vm, } - if (!afinity_cpumask) - afinity_cpumask = use_cpumask; + if (!affinity_cpumask) + affinity_cpumask = use_cpumask; /* Setup legacy affinity. */ - if (afinity_cpumask && virProcessSetAffinity(pid, afinity_cpumask) < 0) + if (affinity_cpumask && virProcessSetAffinity(pid, affinity_cpumask) < 0) goto cleanup; /* Set scheduler type and priority, but not for the main thread. */ -- 2.26.2