summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_memcontrol.c
diff options
context:
space:
mode:
authorZefan Li <lizefan@huawei.com>2013-04-08 21:59:28 +0200
committerDavid S. Miller <davem@davemloft.net>2013-04-09 19:19:34 +0200
commit10b96f7306e5fbc762c2a04e005fc1d444842d9e (patch)
tree0b7362262b15dba46d3bd5023c63516bbef1d7d6 /net/ipv4/tcp_memcontrol.c
parentnet: ipv6: only invalidate previously tokenized addresses (diff)
downloadlinux-10b96f7306e5fbc762c2a04e005fc1d444842d9e.tar.xz
linux-10b96f7306e5fbc762c2a04e005fc1d444842d9e.zip
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 <lizefan@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_memcontrol.c')
-rw-r--r--net/ipv4/tcp_memcontrol.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/tcp_memcontrol.c b/net/ipv4/tcp_memcontrol.c
index b6f3583ddfe8..d52196f56862 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);