]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
credit2: avoid to shadow the variable "cur" in runq_tickle
authorJulien Grall <julien.grall@citrix.com>
Thu, 29 Oct 2015 11:23:53 +0000 (12:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Oct 2015 11:23:53 +0000 (12:23 +0100)
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 <julien.grall@citrix.com>
Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/sched_credit2.c

index 66957291e37c3c4a373ef31e5cdba3d541db8d32..fc51a7597fbbbf210b3118092ab75303854b05fc 100644 (file)
@@ -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;