Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b0c05dc authored by Andrew F. Davis's avatar Andrew F. Davis Committed by Jason Gunthorpe
Browse files

IB/ocrdma: Remove unneeded conversions to bool



Found with scripts/coccinelle/misc/boolconv.cocci.

Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 54a6d63f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -461,7 +461,7 @@ static struct ocrdma_pd *_ocrdma_alloc_pd(struct ocrdma_dev *dev,
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,