From: Li Zefan <lizefan@huawei.com>
To: David Miller <davem@davemloft.net>
Cc: Glauber Costa <glommer@parallels.com>,
LKML <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>
Subject: [PATCH] tcp_memcontrol: remove a redundant statement in tcp_destroy_cgroup()
Date: Tue, 9 Apr 2013 13:59:28 +0800 [thread overview]
Message-ID: <5163AE40.40304@huawei.com> (raw)
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
next reply other threads:[~2013-04-09 5:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-09 5:59 Li Zefan [this message]
2013-04-09 17:19 ` [PATCH] tcp_memcontrol: remove a redundant statement in tcp_destroy_cgroup() David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5163AE40.40304@huawei.com \
--to=lizefan@huawei.com \
--cc=davem@davemloft.net \
--cc=glommer@parallels.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.