ib_srpt: Remove a superfluous assignment

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5427 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2014-04-16 09:14:31 +00:00
parent 4acf8e249f
commit f589744f58
+1 -3
View File
@@ -1126,11 +1126,9 @@ static int srpt_init_ch_qp(struct srpt_rdma_ch *ch, struct ib_qp *qp)
ret = ib_find_cached_pkey(ch->sport->sdev->device, ch->sport->port,
ch->pkey, &attr->pkey_index);
if (ret < 0) {
attr->pkey_index = 0;
if (ret < 0)
PRINT_ERROR("Translating pkey %#x failed (%d) - using index 0",
ch->pkey, ret);
}
ret = ib_modify_qp(qp, attr,
IB_QP_STATE | IB_QP_ACCESS_FLAGS | IB_QP_PORT |