diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-02 18:22:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-05 02:59:11 +0300 |
commit | 1820dd0633b9972028e377ee76e5d40873491d25 (patch) | |
tree | 696d287f9d38dfc05cfb5eb9f0fd5b60e0118740 /net/rxrpc/net_ns.c | |
parent | 8e2f6dd298beb93c30e1699a5c26492a10214447 (diff) | |
download | linux-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.c | 1 |
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; } |