IB/ocrdma: Remove unneeded conversions to bool
Subsystems (3)
PATCH 5/14 IB/ocrdma: Remove unneeded conversions to bool
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by Andrew F. Davis <[email protected]>
--- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +1 -1
@@ -463,7 +463,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,
Signature · 1 line
2.11.0