diff options
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_uc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_uc.c b/drivers/infiniband/hw/ipath/ipath_uc.c index 1c2b03c2ef5e..49d650cabccf 100644 --- a/drivers/infiniband/hw/ipath/ipath_uc.c +++ b/drivers/infiniband/hw/ipath/ipath_uc.c | |||
@@ -58,7 +58,6 @@ static void complete_last_send(struct ipath_qp *qp, struct ipath_swqe *wqe, | |||
58 | wc->port_num = 0; | 58 | wc->port_num = 0; |
59 | ipath_cq_enter(to_icq(qp->ibqp.send_cq), wc, 0); | 59 | ipath_cq_enter(to_icq(qp->ibqp.send_cq), wc, 0); |
60 | } | 60 | } |
61 | wqe = get_swqe_ptr(qp, qp->s_last); | ||
62 | } | 61 | } |
63 | 62 | ||
64 | /** | 63 | /** |
@@ -97,8 +96,10 @@ int ipath_make_uc_req(struct ipath_qp *qp, | |||
97 | * Signal the completion of the last send | 96 | * Signal the completion of the last send |
98 | * (if there is one). | 97 | * (if there is one). |
99 | */ | 98 | */ |
100 | if (qp->s_last != qp->s_tail) | 99 | if (qp->s_last != qp->s_tail) { |
101 | complete_last_send(qp, wqe, &wc); | 100 | complete_last_send(qp, wqe, &wc); |
101 | wqe = get_swqe_ptr(qp, qp->s_last); | ||
102 | } | ||
102 | 103 | ||
103 | /* Check if send work queue is empty. */ | 104 | /* Check if send work queue is empty. */ |
104 | if (qp->s_tail == qp->s_head) | 105 | if (qp->s_tail == qp->s_head) |