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:
54a6d63
)
IB/ocrdma: Remove unneeded conversions to bool
author
Andrew F. Davis
<afd@ti.com>
Tue, 5 Dec 2017 19:15:53 +0000
(13:15 -0600)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Wed, 13 Dec 2017 18:00:14 +0000
(11:00 -0700)
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
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 7866fd8051f68cc20c86966e96729479e2754c2d..b5f1dd33b73ebd13eb2fe047bdb1f73f1bfaba3d 100644
(file)
--- a/
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
+++ b/
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
@@
-461,7
+461,7
@@
retry:
static inline int is_ucontext_pd(struct ocrdma_ucontext *uctx,
struct ocrdma_pd *pd)
{
- return (uctx->cntxt_pd == pd
? true : false
);
+ return (uctx->cntxt_pd == pd);
}
static int _ocrdma_dealloc_pd(struct ocrdma_dev *dev,