]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
rxrpc: remove redundant proc_remove call
authorColin Ian King <colin.king@canonical.com>
Fri, 2 Jun 2017 15:22:27 +0000 (16:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Jun 2017 23:59:11 +0000 (19:59 -0400)
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>
net/rxrpc/net_ns.c

index 26449a6bb0763242cc8b1dce0c335afb96689994..7edceb8522f5b3b094cefc61d219e1cfa8df279e 100644 (file)
@@ -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;
 }