Skip to content

Commit d9fc6b4

Browse files
Xiu Jianfenghtejun
authored andcommitted
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 6fbf718 commit d9fc6b4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/cgroup/cpuset.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4009,8 +4009,6 @@ cpuset_css_alloc(struct cgroup_subsys_state *parent_css)
40094009
}
40104010

40114011
__set_bit(CS_SCHED_LOAD_BALANCE, &cs->flags);
4012-
nodes_clear(cs->mems_allowed);
4013-
nodes_clear(cs->effective_mems);
40144012
fmeter_init(&cs->fmeter);
40154013
cs->relax_domain_level = -1;
40164014
INIT_LIST_HEAD(&cs->remote_sibling);

0 commit comments

Comments
 (0)