[PATCH] IB/ipath: remove some duplicate code
authorBryan O'Sullivan <[email protected]>
Sat, 1 Jul 2006 11:35:54 +0000 (04:35 -0700)
committerLinus Torvalds <[email protected]>
Sat, 1 Jul 2006 16:55:59 +0000 (09:55 -0700)
Signed-off-by: Robert Walsh <[email protected]>
Signed-off-by: Bryan O'Sullivan <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Roland Dreier <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/infiniband/hw/ipath/ipath_qp.c

index e1d31bccf3eb38429a031249b275f5088b69fa9b..47271be65b0fbb8eae89f2db925d2be14dbba611 100644 (file)
@@ -511,9 +511,6 @@ int ipath_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
        if (attr_mask & IB_QP_QKEY)
                qp->qkey = attr->qkey;
 
-       if (attr_mask & IB_QP_PKEY_INDEX)
-               qp->s_pkey_index = attr->pkey_index;
-
        qp->state = new_state;
        spin_unlock(&qp->s_lock);
        spin_unlock_irqrestore(&qp->r_rq.lock, flags);