aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_verbs.c')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_verbs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_verbs.c b/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
index b5902a7ec240..e829e10400e3 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
@@ -41,7 +41,6 @@ int ipoib_mcast_attach(struct net_device *dev, u16 mlid, union ib_gid *mgid)
41{ 41{
42 struct ipoib_dev_priv *priv = netdev_priv(dev); 42 struct ipoib_dev_priv *priv = netdev_priv(dev);
43 struct ib_qp_attr *qp_attr; 43 struct ib_qp_attr *qp_attr;
44 int attr_mask;
45 int ret; 44 int ret;
46 u16 pkey_index; 45 u16 pkey_index;
47 46
@@ -59,8 +58,7 @@ int ipoib_mcast_attach(struct net_device *dev, u16 mlid, union ib_gid *mgid)
59 58
60 /* set correct QKey for QP */ 59 /* set correct QKey for QP */
61 qp_attr->qkey = priv->qkey; 60 qp_attr->qkey = priv->qkey;
62 attr_mask = IB_QP_QKEY; 61 ret = ib_modify_qp(priv->qp, qp_attr, IB_QP_QKEY);
63 ret = ib_modify_qp(priv->qp, qp_attr, attr_mask);
64 if (ret) { 62 if (ret) {
65 ipoib_warn(priv, "failed to modify QP, ret = %d\n", ret); 63 ipoib_warn(priv, "failed to modify QP, ret = %d\n", ret);
66 goto out; 64 goto out;