projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
959f585
)
RDMA/nes: Remove self-assignment from nes_query_qp()
author
Dave Jones
<davej@redhat.com>
Tue, 17 Sep 2013 21:45:54 +0000
(17:45 -0400)
committer
Roland Dreier
<roland@purestorage.com>
Sat, 9 Nov 2013 10:34:27 +0000
(
02:34
-0800)
Assigning a value to itself is pointless.
Spotted with coverity, no hardware to test.
Signed-off-by: Dave Jones <davej@fedoraproject.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/nes/nes_verbs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/nes/nes_verbs.c
b/drivers/infiniband/hw/nes/nes_verbs.c
index 5b53ca5a22840c14e31ddb0d7e978dfac5c179b7..8308e3634767958a4a46920ca11983bf62e62e13 100644
(file)
--- a/
drivers/infiniband/hw/nes/nes_verbs.c
+++ b/
drivers/infiniband/hw/nes/nes_verbs.c
@@
-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;