projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c09af6
)
credit2: avoid to shadow the variable "cur" in runq_tickle
author
Julien Grall
<julien.grall@citrix.com>
Thu, 29 Oct 2015 11:23:53 +0000
(12:23 +0100)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/xen/common/sched_credit2.c
b/xen/common/sched_credit2.c
index 66957291e37c3c4a373ef31e5cdba3d541db8d32..fc51a7597fbbbf210b3118092ab75303854b05fc 100644
(file)
--- 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;