]> git.baikalelectronics.ru Git - kernel.git/commit
net: tcp_memcontrol: minor: remove unused variable
authorDaniel Borkmann <dborkman@redhat.com>
Sun, 14 Apr 2013 08:29:12 +0000 (08:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Apr 2013 19:41:49 +0000 (15:41 -0400)
commita2e498ecd3f775996276aad914daa4d56b5a58c7
tree3eddeeba7819e455cf5378a2a680a7d456c77b45
parent6e4c68a2f33ecf159f2a679da43aeef8b32cceca
net: tcp_memcontrol: minor: remove unused variable

Commit 27a611e8d744 (``tcp_memcontrol: remove a redundant statement
in tcp_destroy_cgroup()'') says ``We read the value but make no use
of it.'', but forgot to remove the variable declaration as well. This
was a follow-up commit of 7d1316738 (``memcg: decrement static keys
at real destroy time'') that removed the read of variable 'val'.

This fixes therefore:

  CC      net/ipv4/tcp_memcontrol.o
net/ipv4/tcp_memcontrol.c: In function ‘tcp_destroy_cgroup’:
net/ipv4/tcp_memcontrol.c:67:6: warning: unused variable ‘val’ [-Wunused-variable]

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_memcontrol.c