@@ -244,7 +244,6 @@ __le64 *irdma_qp_get_next_send_wqe(struct irdma_qp_uk *qp, u32 *wqe_idx,
*/
__le64 *irdma_qp_get_next_recv_wqe(struct irdma_qp_uk *qp, u32 *wqe_idx)
{
- __le64 *wqe;
enum irdma_status_code ret_code;
if (IRDMA_RING_FULL_ERR(qp->rq_ring))
@@ -257,9 +256,8 @@ __le64 *irdma_qp_get_next_recv_wqe(struct irdma_qp_uk *qp, u32 *wqe_idx)
if (!*wqe_idx)
qp->rwqe_polarity = !qp->rwqe_polarity;
/* rq_wqe_size_multiplier is no of 32 byte quanta in one rq wqe */
- wqe = qp->rq_base[*wqe_idx * qp->rq_wqe_size_multiplier].elem;
- return wqe;
+ return qp->rq_base[*wqe_idx * qp->rq_wqe_size_multiplier].elem;
}
/**