qed: remove unused SQ error state
authorRam Amrani <Ram.Amrani@cavium.com>
Sun, 30 Apr 2017 08:49:06 +0000 (11:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 15:42:13 +0000 (11:42 -0400)
The internal RoCE SQE QP state isn't being used. Instead we mark the
QP as in regular error state.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_roce.c

index 5d40615..01244d7 100644 (file)
@@ -2191,8 +2191,7 @@ static int qed_roce_modify_qp(struct qed_hwfn *p_hwfn,
                                                  params->modify_flags);
 
                return rc;
-       } else if (qp->cur_state == QED_ROCE_QP_STATE_ERR ||
-                  qp->cur_state == QED_ROCE_QP_STATE_SQE) {
+       } else if (qp->cur_state == QED_ROCE_QP_STATE_ERR) {
                /* ->ERR */
                rc = qed_roce_sp_modify_responder(p_hwfn, qp, true,
                                                  params->modify_flags);