[PATCH] memcg: remove redundant initialization in mem_cgroup_create()

From: Li Zefan
Date: Tue Apr 22 2008 - 22:27:58 EST


*mem has been zeroed, that means mem->info has already
been filled with 0.

Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx>
---
mm/memcontrol.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index eefa750..020e8f5 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1014,8 +1014,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;
-- 1.5.4.rc3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/