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>
This commit is contained in:
parent
54a6d63f14
commit
8b0c05dc93
@ -461,7 +461,7 @@ retry:
|
|||||||
static inline int is_ucontext_pd(struct ocrdma_ucontext *uctx,
|
static inline int is_ucontext_pd(struct ocrdma_ucontext *uctx,
|
||||||
struct ocrdma_pd *pd)
|
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,
|
static int _ocrdma_dealloc_pd(struct ocrdma_dev *dev,
|
||||||
|
Loading…
Reference in New Issue
Block a user