Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4127c365 authored by Dave Jones's avatar Dave Jones Committed by Roland Dreier
Browse files

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: default avatarDave Jones <davej@fedoraproject.org>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 959f5854
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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->qp_context = nesqp->ibqp.qp_context;
	init_attr->send_cq = nesqp->ibqp.send_cq;
	init_attr->send_cq = nesqp->ibqp.send_cq;
	init_attr->recv_cq = nesqp->ibqp.recv_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;
	init_attr->cap = attr->cap;


	return 0;
	return 0;