Skip to content

Commit 4af8b42

Browse files
committed
SUNRPC: Remove dead code in svc_tcp_release_rqst()
Clean up: svc_tcp_sendto() always sets rq_xprt_ctxt to NULL. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 0b6c14b commit 4af8b42

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

net/sunrpc/svcsock.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,6 @@ static void svc_reclassify_socket(struct socket *sock)
117117
*/
118118
static void svc_tcp_release_rqst(struct svc_rqst *rqstp)
119119
{
120-
struct sk_buff *skb = rqstp->rq_xprt_ctxt;
121-
122-
if (skb) {
123-
struct svc_sock *svsk =
124-
container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt);
125-
126-
rqstp->rq_xprt_ctxt = NULL;
127-
skb_free_datagram_locked(svsk->sk_sk, skb);
128-
}
129120
}
130121

131122
/**

0 commit comments

Comments
 (0)