IB/mthca: Simplify calls to mthca_cq_clean()
authorRoland Dreier <rolandd@cisco.com>
Fri, 22 Sep 2006 22:22:55 +0000 (15:22 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 22 Sep 2006 22:22:55 +0000 (15:22 -0700)
commitd35cc330a2058a32410ef42784b8d3b942f37b8b
treed01f8996ab79610edbf070c21b9200480c5b126f
parent951f7fc1372da3d826b1d975b3cc5e3db92af5d0
IB/mthca: Simplify calls to mthca_cq_clean()

If a QP has separate send and receive CQs, then the send CQ will never
have receive completions from that QP in it.  So when cleaning the
send CQ, there's no need to pass in an SRQ pointer, even if the QP is
attached to an SRQ.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c