mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 21:56:31 +00:00
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:
+1
-3
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user