From: Dan Carpenter Date: Fri, 6 Sep 2013 08:50:46 +0000 (+0300) Subject: RDMA/ocrdma: Silence an integer underflow warning X-Git-Tag: v3.13-rc1~44^2^9~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ebacdfc07ca61ba258693c9b4c88f1ffbe8ccd7;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed