Skip to content

Commit

Permalink
RDMA/nes: Remove self-assignment from nes_query_qp()
Browse files Browse the repository at this point in the history
Assigning a value to itself is pointless.

Spotted with coverity, no hardware to test.

Signed-off-by: Dave Jones <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
  • Loading branch information
Dave Jones authored and rolandd committed Nov 9, 2013
1 parent 959f585 commit 4127c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/nes/nes_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4127c36

Please sign in to comment.