Noticed because Coverity was complaining at the atomic_set(), but because of
the use of xzalloc(), these assignments of 0 are completely redundent.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
INIT_LIST_HEAD(&svc->active_vcpu_elem);
svc->sdom = dd;
svc->vcpu = vc;
- atomic_set(&svc->credit, 0);
- svc->flags = 0U;
svc->pri = is_idle_domain(vc->domain) ?
CSCHED_PRI_IDLE : CSCHED_PRI_TS_UNDER;
SCHED_VCPU_STATS_RESET(svc);
/* Initialize credit and weight */
INIT_LIST_HEAD(&sdom->active_vcpu);
- sdom->active_vcpu_count = 0;
INIT_LIST_HEAD(&sdom->active_sdom_elem);
sdom->dom = dom;
sdom->weight = CSCHED_DEFAULT_WEIGHT;
- sdom->cap = 0U;
return (void *)sdom;
}