projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c95b0
)
IB/ocrdma: Skip using unneeded intermediate variable
author
Markus Elfring
<
[email protected]
>
Sat, 26 Dec 2015 17:40:43 +0000
(18:40 +0100)
committer
Doug Ledford
<
[email protected]
>
Thu, 3 Mar 2016 18:33:22 +0000
(13:33 -0500)
Return the value from a call of the ocrdma_mbx_modify_qp() function
without using an extra assignment for the local variable "status".
Signed-off-by: Markus Elfring <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
index 4a4c8d6f71c8c0ede4727f0478c1e0f7461abcf2..a8496a18e20d667614cf7b2c71408cc046c22b3d 100644
(file)
--- a/
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
+++ b/
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
@@
-1494,9
+1494,7
@@
int _ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
*/
if (status < 0)
return status;
- status = ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask);
-
- return status;
+ return ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask);
}
int ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,