IB/ocrdma: Remove unneeded conversions to bool
authorAndrew F. Davis <afd@ti.com>
Tue, 5 Dec 2017 19:15:53 +0000 (13:15 -0600)
committerJason 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

index 7866fd8..b5f1dd3 100644 (file)
@@ -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,