]> git.baikalelectronics.ru Git - kernel.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)
commit1c9907e4907dd41ecf80f0d4b78dd0c9b9d7f6c9
tree5627c83e66849ee3107de6ccf42502aa2b669a20
parent49893123657af27845db136dcf0c31f0fef6b130
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