summaryrefslogtreecommitdiff
path: root/net/rxrpc/net_ns.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-06-02 18:22:27 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-05 02:59:11 +0300
commit1820dd0633b9972028e377ee76e5d40873491d25 (patch)
tree696d287f9d38dfc05cfb5eb9f0fd5b60e0118740 /net/rxrpc/net_ns.c
parent8e2f6dd298beb93c30e1699a5c26492a10214447 (diff)
downloadlinux-1820dd0633b9972028e377ee76e5d40873491d25.tar.xz
rxrpc: remove redundant proc_remove call
The proc_remove call is dead code as it occurs after a return and hence can never be called. Remove it. Detected by CoverityScan, CID#1437743 ("Logically dead code") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/net_ns.c')
-rw-r--r--net/rxrpc/net_ns.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/rxrpc/net_ns.c b/net/rxrpc/net_ns.c
index 26449a6bb076..7edceb8522f5 100644
--- a/net/rxrpc/net_ns.c
+++ b/net/rxrpc/net_ns.c
@@ -59,7 +59,6 @@ static __net_init int rxrpc_init_net(struct net *net)
proc_create("conns", 0444, rxnet->proc_net, &rxrpc_connection_seq_fops);
return 0;
- proc_remove(rxnet->proc_net);
err_proc:
return ret;
}