diff options
author | Andrew F. Davis <afd@ti.com> | 2017-12-05 13:15:53 -0600 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2017-12-13 11:00:14 -0700 |
commit | 8b0c05dc9380ea3e5d42e0df0a79aeb4971220c5 (patch) | |
tree | ee3be577fe332b3381ccc045dd0e2870413baa57 /drivers/infiniband/hw/ocrdma | |
parent | 54a6d63f14bdb4e899bbb4128d32717074d13862 (diff) |
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.c | 2 |
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, |