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@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
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);
}