mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 22:42:04 +00:00
cgroup/cpuset: Remove unnecessary zeroing
The struct cpuset is kzalloc'd, all the members are zeroed already, so don't need nodes_clear() here. No functional changes intended. Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
6fbf71854e
commit
d9fc6b4220
@ -4009,8 +4009,6 @@ cpuset_css_alloc(struct cgroup_subsys_state *parent_css)
|
||||
}
|
||||
|
||||
__set_bit(CS_SCHED_LOAD_BALANCE, &cs->flags);
|
||||
nodes_clear(cs->mems_allowed);
|
||||
nodes_clear(cs->effective_mems);
|
||||
fmeter_init(&cs->fmeter);
|
||||
cs->relax_domain_level = -1;
|
||||
INIT_LIST_HEAD(&cs->remote_sibling);
|
||||
|
Loading…
Reference in New Issue
Block a user