summaryrefslogtreecommitdiffstats
path: root/net/rxrpc
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-06-02 16:22:27 +0100
committerDavid S. Miller <davem@davemloft.net>2017-06-04 19:59:11 -0400
commit1820dd0633b9972028e377ee76e5d40873491d25 (patch)
tree696d287f9d38dfc05cfb5eb9f0fd5b60e0118740 /net/rxrpc
parent8e2f6dd298beb93c30e1699a5c26492a10214447 (diff)
downloadlinux-1820dd0633b9972028e377ee76e5d40873491d25.tar.bz2
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')
-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;
}