|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] sched-rt: avoid to shadow the variable "svc" in rt_dom_cntl
commit 79fbab823fde327c6b766529c1b06b509457dc92
Author: Julien Grall <julien.grall@xxxxxxxxxx>
AuthorDate: Thu Oct 29 12:24:13 2015 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Oct 29 12:24:13 2015 +0100
sched-rt: avoid to shadow the variable "svc" in rt_dom_cntl
The variable "svc" is declared twice within rt_dom_cntl. However, the
top declaration could be re-used avoiding re-declaring another time the
variable.
Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx>
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
---
xen/common/sched_rt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c
index 6a341b1..822f23c 100644
--- a/xen/common/sched_rt.c
+++ b/xen/common/sched_rt.c
@@ -1158,7 +1158,7 @@ rt_dom_cntl(
spin_lock_irqsave(&prv->lock, flags);
list_for_each( iter, &sdom->vcpu )
{
- struct rt_vcpu * svc = list_entry(iter, struct rt_vcpu, sdom_elem);
+ svc = list_entry(iter, struct rt_vcpu, sdom_elem);
svc->period = MICROSECS(op->u.rtds.period); /* transfer to nanosec
*/
svc->budget = MICROSECS(op->u.rtds.budget);
}
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |