Message ID | alpine.DEB.2.10.1612091152080.2899@hadrien (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
--- a/drivers/infiniband/hw/bnxtre/bnxt_re_main.c +++ b/drivers/infiniband/hw/bnxtre/bnxt_re_main.c @@ -831,7 +831,7 @@ static void bnxt_re_dev_stop(struct bnxt mutex_lock(&rdev->qp_lock); list_for_each_entry(qp, &rdev->qp_list, list) { /* Modify the state of all QPs except QP1/Shadow QP */ - if (qp && !bnxt_re_is_qp1_or_shadow_qp(rdev, qp)) { + if (!bnxt_re_is_qp1_or_shadow_qp(rdev, qp)) { if (qp->qplib_qp.state != CMDQ_MODIFY_QP_NEW_STATE_RESET || qp->qplib_qp.state !=