diff options
author | Michal Koutný <mkoutny@suse.com> | 2024-04-16 17:20:09 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-04-16 22:18:36 +0300 |
commit | 15b8b9ab5081d8dce9aa27a594ba4db2c29cefc0 (patch) | |
tree | c0380fa9e317fb56c761e96bee9c867c70973348 /kernel/cgroup | |
parent | a24e3b7d27c63036dac32d20d18eeeceb54ca207 (diff) | |
download | linux-15b8b9ab5081d8dce9aa27a594ba4db2c29cefc0.tar.xz |
cgroup/pids: Remove superfluous zeroing
Atomic counters are in kzalloc'd struct. They are zeroed already and
atomic64_t does not need special initialization
(cf kernel/trace/trace_clock.c:trace_counter).
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r-- | kernel/cgroup/pids.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cgroup/pids.c b/kernel/cgroup/pids.c index 7695e60bcb40..0e5ec7d59b4d 100644 --- a/kernel/cgroup/pids.c +++ b/kernel/cgroup/pids.c @@ -75,9 +75,7 @@ pids_css_alloc(struct cgroup_subsys_state *parent) if (!pids) return ERR_PTR(-ENOMEM); - atomic64_set(&pids->counter, 0); atomic64_set(&pids->limit, PIDS_MAX); - atomic64_set(&pids->events_limit, 0); return &pids->css; } |