mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
qemuDomainSetSchedulerParametersFlags: use the value_ul variable
We assign the unsigned long value of the currently processed parameter to a temporary value_ul variable. Use it consistently in all cases.
This commit is contained in:
parent
e4b980c853
commit
38cc22ea00
@ -10118,7 +10118,7 @@ qemuDomainSetSchedulerParametersFlags(virDomainPtr dom,
|
||||
}
|
||||
|
||||
if (persistentDef)
|
||||
persistentDefCopy->cputune.period = params[i].value.ul;
|
||||
persistentDefCopy->cputune.period = value_ul;
|
||||
|
||||
} else if (STREQ(param->field, VIR_DOMAIN_SCHEDULER_VCPU_QUOTA)) {
|
||||
SCHED_RANGE_CHECK(value_l, VIR_DOMAIN_SCHEDULER_VCPU_QUOTA,
|
||||
@ -10158,7 +10158,7 @@ qemuDomainSetSchedulerParametersFlags(virDomainPtr dom,
|
||||
}
|
||||
|
||||
if (persistentDef)
|
||||
persistentDefCopy->cputune.period = params[i].value.ul;
|
||||
persistentDefCopy->cputune.period = value_ul;
|
||||
|
||||
} else if (STREQ(param->field, VIR_DOMAIN_SCHEDULER_GLOBAL_QUOTA)) {
|
||||
SCHED_RANGE_CHECK(value_l, VIR_DOMAIN_SCHEDULER_GLOBAL_QUOTA,
|
||||
@ -10240,7 +10240,7 @@ qemuDomainSetSchedulerParametersFlags(virDomainPtr dom,
|
||||
}
|
||||
|
||||
if (persistentDef)
|
||||
persistentDefCopy->cputune.iothread_period = params[i].value.ul;
|
||||
persistentDefCopy->cputune.iothread_period = value_ul;
|
||||
|
||||
} else if (STREQ(param->field, VIR_DOMAIN_SCHEDULER_IOTHREAD_QUOTA)) {
|
||||
SCHED_RANGE_CHECK(value_l, VIR_DOMAIN_SCHEDULER_IOTHREAD_QUOTA,
|
||||
|
Loading…
x
Reference in New Issue
Block a user