Commit fb10f802 authored by Gao feng's avatar Gao feng Committed by David S. Miller

tcp_memcg: remove useless var old_lim

nobody needs it. remove.
Signed-off-by: default avatarGao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b8ee93ba
...@@ -60,7 +60,6 @@ EXPORT_SYMBOL(tcp_destroy_cgroup); ...@@ -60,7 +60,6 @@ EXPORT_SYMBOL(tcp_destroy_cgroup);
static int tcp_update_limit(struct mem_cgroup *memcg, u64 val) static int tcp_update_limit(struct mem_cgroup *memcg, u64 val)
{ {
struct cg_proto *cg_proto; struct cg_proto *cg_proto;
u64 old_lim;
int i; int i;
int ret; int ret;
...@@ -71,7 +70,6 @@ static int tcp_update_limit(struct mem_cgroup *memcg, u64 val) ...@@ -71,7 +70,6 @@ static int tcp_update_limit(struct mem_cgroup *memcg, u64 val)
if (val > RES_COUNTER_MAX) if (val > RES_COUNTER_MAX)
val = RES_COUNTER_MAX; val = RES_COUNTER_MAX;
old_lim = res_counter_read_u64(&cg_proto->memory_allocated, RES_LIMIT);
ret = res_counter_set_limit(&cg_proto->memory_allocated, val); ret = res_counter_set_limit(&cg_proto->memory_allocated, val);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment