[IB] mthca: fix wraparound handling in mthca_cq_clean()
authorRoland Dreier <rolandd@cisco.com>
Wed, 9 Nov 2005 20:23:17 +0000 (12:23 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 10 Nov 2005 18:22:51 +0000 (10:22 -0800)
Handle case where prod_index has wrapped around and become less than
cq->cons_index by checking that their difference as a signed int is
positive rather than comparing directly.

Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found