From: Julien Grall Date: Thu, 29 Oct 2015 11:23:53 +0000 (+0100) Subject: credit2: avoid to shadow the variable "cur" in runq_tickle X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2332 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=568ff32927ecc68765973ad5b590b48e045dee4a;p=xen.git 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 --- 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;