diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2024-05-25 09:44:03 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-05-26 08:28:30 -1000 |
commit | d9fc6b422062a1f026a09f210e012a27f808fb11 (patch) | |
tree | 8c2bbaa5df95b0a038c0cb68c3c88e9461763bbc /kernel/cgroup | |
parent | 6fbf71854e2ddea7c99397772fbbb3783bfe15b5 (diff) |
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>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r-- | kernel/cgroup/cpuset.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index c12b9fdb22a4..a553e3d46498 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -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); |