mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
memcg: remove redundant initialization in mem_cgroup_create()
*mem has been zeroed, that means mem->info has already been filled with 0. Signed-off-by: Li Zefan <[email protected]> Acked-by: KAMEZAWA Hiroyuki <[email protected]> Acked-by: Balbir Singh <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3332794878
commit
1faf8e40a8
1 changed files with 0 additions and 2 deletions
|
|
@ -1024,8 +1024,6 @@ mem_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cont)
|
|||
|
||||
res_counter_init(&mem->res);
|
||||
|
||||
memset(&mem->info, 0, sizeof(mem->info));
|
||||
|
||||
for_each_node_state(node, N_POSSIBLE)
|
||||
if (alloc_mem_cgroup_per_zone_info(mem, node))
|
||||
goto free_out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue