提交 4127c365 编写于 作者: D Dave Jones 提交者: Roland Dreier

RDMA/nes: Remove self-assignment from nes_query_qp()

Assigning a value to itself is pointless.

Spotted with coverity, no hardware to test.
Signed-off-by: NDave Jones <davej@fedoraproject.org>
Signed-off-by: NRoland Dreier <roland@purestorage.com>
上级 959f5854
......@@ -2834,7 +2834,7 @@ static int nes_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
init_attr->qp_context = nesqp->ibqp.qp_context;
init_attr->send_cq = nesqp->ibqp.send_cq;
init_attr->recv_cq = nesqp->ibqp.recv_cq;
init_attr->srq = nesqp->ibqp.srq = nesqp->ibqp.srq;
init_attr->srq = nesqp->ibqp.srq;
init_attr->cap = attr->cap;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册