commit | 6ebacdfc07ca61ba258693c9b4c88f1ffbe8ccd7 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Sep 06 11:50:46 2013 +0300 |
committer | Roland Dreier <roland@purestorage.com> | Fri Nov 08 14:43:05 2013 -0800 |
tree | 41dd5f8e054c318bdd689f828c532db653230315 | |
parent | 959f58544b7f20c92d5eb43d1232c96c15c01bfb [diff] |
RDMA/ocrdma: Silence an integer underflow warning We recently added a cap on "max_wqe_allocated" in 43a6b4025c ('RDMA/ocrdma: Create IRD queue fix'). My static checker complains that the cap has a problem because it casts large values to negative. "attrs->cap.max_send_wr" is a u32. It comes from the user, but it's capped in ocrdma_check_qp_params() so it can't wrap here. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Roland Dreier <roland@purestorage.com>