]> rtime.felk.cvut.cz Git - linux-imx.git/commit
RDMA/cxgb3: Timeout condition is never true
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 18 Jun 2013 07:27:38 +0000 (10:27 +0300)
committerRoland Dreier <roland@purestorage.com>
Thu, 20 Jun 2013 11:51:52 +0000 (04:51 -0700)
commit21bfd4706268c85c9d17ca2fd48de3b19c9d40db
tree5627c83e66849ee3107de6ccf42502aa2b669a20
parentfedaf4ffc224a194e2d13a3ec2abe5df0bc94258
RDMA/cxgb3: Timeout condition is never true

This is a static checker fix.  "count" is unsigned so it's never -1.
Since "count" is 16 bits and the addition operation is implicitly
casted to int then there is no wrapping here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb3/iwch_qp.c