summaryrefslogtreecommitdiff
path: root/net/sunrpc/xprtrdma/svc_rdma_marshal.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2015-01-13 19:02:54 +0300
committerJ. Bruce Fields <bfields@redhat.com>2015-01-15 23:01:44 +0300
commit2397aa8b515f7bd77c8d5698170b6a98fdd6721c (patch)
treeb631bbfd5e6c736601a2007e3fc276bd5ee2131a /net/sunrpc/xprtrdma/svc_rdma_marshal.c
parent83f2bedfc6435ffeaa7b466058c5d22b5e8f428b (diff)
downloadlinux-2397aa8b515f7bd77c8d5698170b6a98fdd6721c.tar.xz
svcrdma: Clean up read chunk counting
The byte_count argument is not used, and the function is called only from one place. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Reviewed-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/svc_rdma_marshal.c')
-rw-r--r--net/sunrpc/xprtrdma/svc_rdma_marshal.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_marshal.c b/net/sunrpc/xprtrdma/svc_rdma_marshal.c
index 65b146297f5a..b681855cf970 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_marshal.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_marshal.c
@@ -71,22 +71,6 @@ static u32 *decode_read_list(u32 *va, u32 *vaend)
}
/*
- * Determine number of chunks and total bytes in chunk list. The chunk
- * list has already been verified to fit within the RPCRDMA header.
- */
-void svc_rdma_rcl_chunk_counts(struct rpcrdma_read_chunk *ch,
- int *ch_count, int *byte_count)
-{
- /* compute the number of bytes represented by read chunks */
- *byte_count = 0;
- *ch_count = 0;
- for (; ch->rc_discrim != 0; ch++) {
- *byte_count = *byte_count + ntohl(ch->rc_target.rs_length);
- *ch_count = *ch_count + 1;
- }
-}
-
-/*
* Decodes a write chunk list. The expected format is as follows:
* descrim : xdr_one
* nchunks : <count>