Skip to contentSkip to conversation

SUNRPC: Fix an unnecessary implicit type cast in rpcrdma_count_chunks()

PATCH In review Chuck Lever 1 participant 1 message Oct 26, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/27 SUNRPC: Fix an unnecessary implicit type cast in rpcrdma_count_chunks()

Nit: rl_nchunks is an unsigned integer, so pass it into rpcrdma_count_chunks() via an unsigned integer argument. This eliminates a harmless mixed sign comparison in rpcrdma_count_chunks()

---

 net/sunrpc/xprtrdma/rpc_rdma.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
net/sunrpc/xprtrdma/rpc_rdma.c +2 -1
index 65e211e..7024ac8 100644
@@ -559,7 +559,8 @@ rpcrdma_marshal_req(struct rpc_rqst *rqst)
  * RDMA'd by server. See map at rpcrdma_create_chunks()! :-)
  */
 static int
-rpcrdma_count_chunks(struct rpcrdma_rep *rep, int max, int wrchunk, u32 **iptrp)
+rpcrdma_count_chunks(struct rpcrdma_rep *rep, unsigned int max, int wrchunk,
+		     u32 **iptrp)
 {
 	unsigned int i, total_len;
 	struct rpcrdma_write_chunk *cur_wchunk;

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs