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 <michal.orzel@arm.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Acked-by: default avatarDario Faggioli <dfaggioli@suse.com>
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 )
continue;
old_unit = idle_vcpu[cpu_iter]->sched_unit;
sr_old = get_sched_res(cpu_iter);
kill_timer(&sr_old->s_timer);
idle_vcpu[cpu_iter]->sched_unit = master_unit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment