Skip to content

Commit 1820dd0

Browse files
Colin Ian Kingdavem330
authored andcommitted
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 <[email protected]> Acked-by: David Howells <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8e2f6dd commit 1820dd0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/rxrpc/net_ns.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ static __net_init int rxrpc_init_net(struct net *net)
5959
proc_create("conns", 0444, rxnet->proc_net, &rxrpc_connection_seq_fops);
6060
return 0;
6161

62-
proc_remove(rxnet->proc_net);
6362
err_proc:
6463
return ret;
6564
}

0 commit comments

Comments
 (0)