aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ocrdma
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2017-12-05 13:15:53 -0600
committerJason Gunthorpe <jgg@mellanox.com>2017-12-13 11:00:14 -0700
commit8b0c05dc9380ea3e5d42e0df0a79aeb4971220c5 (patch)
treeee3be577fe332b3381ccc045dd0e2870413baa57 /drivers/infiniband/hw/ocrdma
parentIB/mlx4: Potential buffer overflow in _mlx4_set_path() (diff)
downloadlinux-dev-8b0c05dc9380ea3e5d42e0df0a79aeb4971220c5.tar.xz
linux-dev-8b0c05dc9380ea3e5d42e0df0a79aeb4971220c5.zip
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,