Commit 4026c0d4 authored by Michal Orzel's avatar Michal Orzel Committed by Stefano Stabellini

xen/sched: Remove unused-but-set variable

Function schedule_cpu_add defines and sets a variable old_unit but
does not make use of it. Remove this variable.
Signed-off-by: default avatarMichal Orzel <>
Reviewed-by: default avatarJuergen Gross <>
Acked-by: default avatarDario Faggioli <>
parent 2845588e
......@@ -3104,7 +3104,7 @@ int schedule_cpu_add(unsigned int cpu, struct cpupool *c)
const cpumask_t *mask;
unsigned int cpu_iter, idx = 0;
struct sched_unit *old_unit, *master_unit;
struct sched_unit *master_unit;
struct sched_resource *sr_old;
......@@ -3128,7 +3128,6 @@ int schedule_cpu_add(unsigned int cpu, struct cpupool *c)
if ( cpu == cpu_iter )
old_unit = idle_vcpu[cpu_iter]->sched_unit;
sr_old = get_sched_res(cpu_iter);
idle_vcpu[cpu_iter]->sched_unit = master_unit;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment