Browse Source

sunrpc: Remove unneeded pointer dereference

Clean up: Noticed during code inspection that there is already a
local automatic variable "xprt" so dereferencing rqst->rq_xprt
again is unnecessary.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Chuck Lever 7 years ago
parent
commit
63a1b15693
1 changed files with 2 additions and 2 deletions
  1. 2 2
      net/sunrpc/svc_xprt.c

+ 2 - 2
net/sunrpc/svc_xprt.c

@@ -492,7 +492,7 @@ static void svc_xprt_release(struct svc_rqst *rqstp)
 {
 {
 	struct svc_xprt	*xprt = rqstp->rq_xprt;
 	struct svc_xprt	*xprt = rqstp->rq_xprt;
 
 
-	rqstp->rq_xprt->xpt_ops->xpo_release_rqst(rqstp);
+	xprt->xpt_ops->xpo_release_rqst(rqstp);
 
 
 	kfree(rqstp->rq_deferred);
 	kfree(rqstp->rq_deferred);
 	rqstp->rq_deferred = NULL;
 	rqstp->rq_deferred = NULL;
@@ -889,7 +889,7 @@ int svc_send(struct svc_rqst *rqstp)
 		goto out;
 		goto out;
 
 
 	/* release the receive skb before sending the reply */
 	/* release the receive skb before sending the reply */
-	rqstp->rq_xprt->xpt_ops->xpo_release_rqst(rqstp);
+	xprt->xpt_ops->xpo_release_rqst(rqstp);
 
 
 	/* calculate over-all length */
 	/* calculate over-all length */
 	xb = &rqstp->rq_res;
 	xb = &rqstp->rq_res;