summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ocrdma
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2017-12-05 22:15:53 +0300
committerJason Gunthorpe <jgg@mellanox.com>2017-12-13 21:00:14 +0300
commit8b0c05dc9380ea3e5d42e0df0a79aeb4971220c5 (patch)
treeee3be577fe332b3381ccc045dd0e2870413baa57 /drivers/infiniband/hw/ocrdma
parent54a6d63f14bdb4e899bbb4128d32717074d13862 (diff)
downloadlinux-8b0c05dc9380ea3e5d42e0df0a79aeb4971220c5.tar.xz
IB/ocrdma: Remove unneeded conversions to bool
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_verbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
index 7866fd8051f6..b5f1dd33b73e 100644
--- 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,