Index: hw/mlx4/user/hca/qp.c
===================================================================
--- hw/mlx4/user/hca/qp.c	(revision 3414)
+++ hw/mlx4/user/hca/qp.c	(working copy)
@@ -230,14 +230,6 @@
 
 	pthread_spin_lock(&qp->sq.lock);
 
-	/* XXX check that state is OK to post send */
-	if(ibqp->state == IBV_QPS_RESET) {
-		status = IB_INVALID_QP_STATE;
-		if (bad_wr)
-			*bad_wr = wr;
-		goto err_state;
-	}
-
 	ind = qp->sq.head;
 
 	for (nreq = 0; wr; ++nreq, wr = wr->p_next) {
@@ -478,7 +470,6 @@
 		stamp_send_wqe(qp, (ind + qp->sq_spare_wqes - 1) &
 			       (qp->sq.wqe_cnt - 1));
 
-err_state:
 	pthread_spin_unlock(&qp->sq.lock);
 
 	return status;
@@ -501,14 +492,6 @@
 
 	pthread_spin_lock(&qp->rq.lock);
 
-	/* XXX check that state is OK to post receive */
-	if(qp->ibv_qp.state == IBV_QPS_RESET) {
-		status = IB_INVALID_QP_STATE;
-		if (bad_wr)
-			*bad_wr = wr;
-		goto err_state;
-	}
-
 	ind = qp->rq.head & (qp->rq.wqe_cnt - 1);
 
 	for (nreq = 0; wr; ++nreq, wr = wr->p_next) {
@@ -558,7 +541,6 @@
 		*qp->db = htonl(qp->rq.head & 0xffff);
 	}
 
-err_state:
 	pthread_spin_unlock(&qp->rq.lock);
 
 	return status;
