Patchwork tcp_memcontrol: remove a redundant statement in tcp_destroy_cgroup()

login
register
mail settings
Submitter Zefan Li
Date April 9, 2013, 5:59 a.m.
Message ID <5163AE40.40304@huawei.com>
Download mbox | patch
Permalink /patch/234959/
State Accepted
Delegated to: David Miller
Headers show

Comments

Zefan Li - April 9, 2013, 5:59 a.m.
We read the value but make no use of it.

Signed-off-by: Li Zefan <lizefan@huawei.com>
---
 net/ipv4/tcp_memcontrol.c | 2 --
 1 file changed, 2 deletions(-)
David Miller - April 9, 2013, 5:19 p.m.
From: Li Zefan <lizefan@huawei.com>
Date: Tue, 9 Apr 2013 13:59:28 +0800

> We read the value but make no use of it.
> 
> Signed-off-by: Li Zefan <lizefan@huawei.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

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);