mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
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>
This commit is contained in:
parent
a24e3b7d27
commit
15b8b9ab50
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue