aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2016-05-04 10:53:14 -0400
committerJ. Bruce Fields <bfields@redhat.com>2016-05-13 15:53:05 -0400
commitcac7f15036dc69c8708fa73369a9fae193e82bfb (patch)
treeeed2f321afe549564c010f0d0940cab8bcd44232
parent9ec64052060f972101b49f47631f5072f075426c (diff)
svcrdma: Remove superfluous line from rdma_read_chunks()
Clean up: svc_rdma_get_read_chunk() already returns a pointer to the Read list. No need to set "ch" again to the value it already contains. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--net/sunrpc/xprtrdma/svc_rdma_recvfrom.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
index 234be9de6210..12e78997bf19 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
@@ -447,10 +447,8 @@ static int rdma_read_chunks(struct svcxprt_rdma *xprt,
447 head->arg.len = rqstp->rq_arg.len; 447 head->arg.len = rqstp->rq_arg.len;
448 head->arg.buflen = rqstp->rq_arg.buflen; 448 head->arg.buflen = rqstp->rq_arg.buflen;
449 449
450 ch = (struct rpcrdma_read_chunk *)&rmsgp->rm_body.rm_chunks[0];
451 position = be32_to_cpu(ch->rc_position);
452
453 /* RDMA_NOMSG: RDMA READ data should land just after RDMA RECV data */ 450 /* RDMA_NOMSG: RDMA READ data should land just after RDMA RECV data */
451 position = be32_to_cpu(ch->rc_position);
454 if (position == 0) { 452 if (position == 0) {
455 head->arg.pages = &head->pages[0]; 453 head->arg.pages = &head->pages[0];
456 page_offset = head->byte_len; 454 page_offset = head->byte_len;