Commit 4af8b42e authored by Chuck Lever's avatar Chuck Lever

SUNRPC: Remove dead code in svc_tcp_release_rqst()

Clean up: svc_tcp_sendto() always sets rq_xprt_ctxt to NULL.
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 0b6c14bd
......@@ -117,15 +117,6 @@ static void svc_reclassify_socket(struct socket *sock)
*/
static void svc_tcp_release_rqst(struct svc_rqst *rqstp)
{
struct sk_buff *skb = rqstp->rq_xprt_ctxt;
if (skb) {
struct svc_sock *svsk =
container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt);
rqstp->rq_xprt_ctxt = NULL;
skb_free_datagram_locked(svsk->sk_sk, skb);
}
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment