summaryrefslogtreecommitdiff
path: root/net/sctp/objcnt.c
diff options
context:
space:
mode:
authorAl Viro <viro@ZenIV.linux.org.uk>2018-03-17 02:32:51 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-18 03:11:22 +0300
commitd47d08c8ca052df3d9fde7cfff518660335b16e7 (patch)
treed71c38e8e93706a871edfbfa0eab429fe1622156 /net/sctp/objcnt.c
parent90e2c7a1248d422cb21665ff6da52442c245963d (diff)
downloadlinux-d47d08c8ca052df3d9fde7cfff518660335b16e7.tar.xz
sctp: use proc_remove_subtree()
use proc_remove_subtree() for subtree removal, both on setup failure halfway through and on teardown. No need to make simple things complex... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/objcnt.c')
-rw-r--r--net/sctp/objcnt.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/net/sctp/objcnt.c b/net/sctp/objcnt.c
index aeea6da81441..fd2684ad94c8 100644
--- a/net/sctp/objcnt.c
+++ b/net/sctp/objcnt.c
@@ -130,11 +130,3 @@ void sctp_dbg_objcnt_init(struct net *net)
if (!ent)
pr_warn("sctp_dbg_objcnt: Unable to create /proc entry.\n");
}
-
-/* Cleanup the objcount entry in the proc filesystem. */
-void sctp_dbg_objcnt_exit(struct net *net)
-{
- remove_proc_entry("sctp_dbg_objcnt", net->sctp.proc_net_sctp);
-}
-
-