Skip to content

Commit

Permalink
Merge tag 'nfs-rdma-for-4.0-3' of git://git.linux-nfs.org/projects/an…
Browse files Browse the repository at this point in the history
…na/nfs-rdma

NFS: RDMA Client Sparse Fix MIPS#2

This patch fixes another sparse fix found by Dan Carpenter's tool.

Signed-off-by: Anna Schumaker <[email protected]>

* tag 'nfs-rdma-for-4.0-3' of git://git.linux-nfs.org/projects/anna/nfs-rdma:
  xprtrdma: Store RDMA credits in unsigned variables
  • Loading branch information
trondmypd committed Feb 24, 2015
2 parents c517d83 + 9b1dcbc commit 7a27eae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion net/sunrpc/xprtrdma/rpc_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,9 @@ rpcrdma_reply_handler(struct rpcrdma_rep *rep)
struct rpc_xprt *xprt = rep->rr_xprt;
struct rpcrdma_xprt *r_xprt = rpcx_to_rdmax(xprt);
__be32 *iptr;
int credits, rdmalen, status;
int rdmalen, status;
unsigned long cwnd;
u32 credits;

/* Check status. If bad, signal disconnect and return rep to pool */
if (rep->rr_len == ~0U) {
Expand Down
2 changes: 1 addition & 1 deletion net/sunrpc/xprtrdma/xprt_rdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ rpcr_to_rdmar(struct rpc_rqst *rqst)
*/
struct rpcrdma_buffer {
spinlock_t rb_lock; /* protects indexes */
int rb_max_requests;/* client max requests */
u32 rb_max_requests;/* client max requests */
struct list_head rb_mws; /* optional memory windows/fmrs/frmrs */
struct list_head rb_all;
int rb_send_index;
Expand Down

0 comments on commit 7a27eae

Please sign in to comment.