Skip to content

Commit

Permalink
tcp_memcontrol: remove a redundant statement in tcp_destroy_cgroup()
Browse files Browse the repository at this point in the history
We read the value but make no use of it.

Signed-off-by: Li Zefan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
lizf-os authored and davem330 committed Apr 9, 2013
1 parent 617fe29 commit 10b96f7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/ipv4/tcp_memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 10b96f7

Please sign in to comment.