netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tcp_memcontrol: remove a redundant statement in tcp_destroy_cgroup()
@ 2013-04-09  5:59 Li Zefan
  2013-04-09 17:19 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Li Zefan @ 2013-04-09  5:59 UTC (permalink / raw)
  To: David Miller; +Cc: Glauber Costa, LKML, netdev

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

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tcp_memcontrol: remove a redundant statement in tcp_destroy_cgroup()
  2013-04-09  5:59 [PATCH] tcp_memcontrol: remove a redundant statement in tcp_destroy_cgroup() Li Zefan
@ 2013-04-09 17:19 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-04-09 17:19 UTC (permalink / raw)
  To: lizefan; +Cc: glommer, linux-kernel, netdev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-09 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09  5:59 [PATCH] tcp_memcontrol: remove a redundant statement in tcp_destroy_cgroup() Li Zefan
2013-04-09 17:19 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).