From: Michal Orzel Date: Wed, 27 Apr 2022 09:49:38 +0000 (+0200) Subject: xen/sched: Remove unused-but-set variable X-Git-Tag: 4.17.0-rc1~530 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4026c0d4c4811b8337b4eab3cdea7037cbfb0eb4;p=xen.git 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: Michal Orzel Reviewed-by: Juergen Gross Acked-by: Dario Faggioli --- diff --git a/xen/common/sched/core.c b/xen/common/sched/core.c index 19ab678181..8a8c25bbda 100644 --- a/xen/common/sched/core.c +++ b/xen/common/sched/core.c @@ -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;