From 568ff32927ecc68765973ad5b590b48e045dee4a Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Thu, 29 Oct 2015 12:23:53 +0100 Subject: [PATCH] credit2: avoid to shadow the variable "cur" in runq_tickle The variable "cur" is declared twice within "cur". However the top declaration could be re-used avoiding re-declaring another time the variable. Signed-off-by: Julien Grall Acked-by: Dario Faggioli Reviewed-by: Andrew Cooper --- xen/common/sched_credit2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index 66957291e3..fc51a7597f 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -519,8 +519,6 @@ runq_tickle(const struct scheduler *ops, unsigned int cpu, struct csched2_vcpu * for_each_cpu(i, &mask) { - struct csched2_vcpu * cur; - /* Already looked at this one above */ if ( i == cpu ) continue; -- 2.39.5