Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c627d31b authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Cleanup to remove xs_tcp_close()



xs_tcp_close() is now just a call to xs_tcp_shutdown(), so remove it,
and replace the entry in xs_tcp_ops.

Suggested-by: default avatarAnna Schumaker <anna.schumaker@netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 4c21462a
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -863,11 +863,6 @@ static void xs_close(struct rpc_xprt *xprt)
	xprt_disconnect_done(xprt);
}

static void xs_tcp_close(struct rpc_xprt *xprt)
{
	xs_tcp_shutdown(xprt);
}

static void xs_xprt_free(struct rpc_xprt *xprt)
{
	xs_free_peer_addresses(xprt);
@@ -2500,7 +2495,7 @@ static struct rpc_xprt_ops xs_tcp_ops = {
	.buf_free		= rpc_free,
	.send_request		= xs_tcp_send_request,
	.set_retrans_timeout	= xprt_set_retrans_timeout_def,
	.close			= xs_tcp_close,
	.close			= xs_tcp_shutdown,
	.destroy		= xs_destroy,
	.print_stats		= xs_tcp_print_stats,
};