From: Zefan Li Date: Mon, 8 Apr 2013 19:59:28 +0000 (+0000) Subject: tcp_memcontrol: remove a redundant statement in tcp_destroy_cgroup() X-Git-Tag: v3.10-rc1~66^2~185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10b96f7306e5fbc762c2a04e005fc1d444842d9e;p=platform%2Fkernel%2Flinux-exynos.git tcp_memcontrol: remove a redundant statement in tcp_destroy_cgroup() We read the value but make no use of it. Signed-off-by: Li Zefan Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_memcontrol.c b/net/ipv4/tcp_memcontrol.c index b6f3583..d52196f 100644 --- a/net/ipv4/tcp_memcontrol.c +++ b/net/ipv4/tcp_memcontrol.c @@ -72,8 +72,6 @@ void tcp_destroy_cgroup(struct mem_cgroup *memcg) tcp = tcp_from_cgproto(cg_proto); percpu_counter_destroy(&tcp->tcp_sockets_allocated); - - val = res_counter_read_u64(&tcp->tcp_memory_allocated, RES_LIMIT); } EXPORT_SYMBOL(tcp_destroy_cgroup);