Skip to content

Commit

Permalink
rxrpc: remove redundant proc_remove call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Jun 4, 2017
1 parent 8e2f6dd commit 1820dd0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/rxrpc/net_ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1820dd0

Please sign in to comment.