diff options
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_qp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_qp.c b/drivers/infiniband/sw/rxe/rxe_qp.c index 486d576e55bc..44b2108253bd 100644 --- a/drivers/infiniband/sw/rxe/rxe_qp.c +++ b/drivers/infiniband/sw/rxe/rxe_qp.c | |||
@@ -813,8 +813,7 @@ void rxe_qp_destroy(struct rxe_qp *qp) | |||
813 | del_timer_sync(&qp->rnr_nak_timer); | 813 | del_timer_sync(&qp->rnr_nak_timer); |
814 | 814 | ||
815 | rxe_cleanup_task(&qp->req.task); | 815 | rxe_cleanup_task(&qp->req.task); |
816 | if (qp_type(qp) == IB_QPT_RC) | 816 | rxe_cleanup_task(&qp->comp.task); |
817 | rxe_cleanup_task(&qp->comp.task); | ||
818 | 817 | ||
819 | /* flush out any receive wr's or pending requests */ | 818 | /* flush out any receive wr's or pending requests */ |
820 | __rxe_do_task(&qp->req.task); | 819 | __rxe_do_task(&qp->req.task); |