All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IB/ocrdma: Remove unneeded conversions to bool
@ 2017-12-05 19:15 Andrew F. Davis
       [not found] ` <20171205191553.21770-1-afd-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew F. Davis @ 2017-12-05 19:15 UTC (permalink / raw)
  To: Selvin Xavier, Devesh Sharma, Doug Ledford, Jason Gunthorpe
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Andrew F . Davis

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

Signed-off-by: Andrew F. Davis <afd-l0cyMroinI0@public.gmane.org>
---
 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ 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,
-- 
2.15.0

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] IB/ocrdma: Remove unneeded conversions to bool
       [not found] ` <20171205191553.21770-1-afd-l0cyMroinI0@public.gmane.org>
@ 2017-12-07  4:02   ` Devesh Sharma
  2017-12-13 18:20   ` Jason Gunthorpe
  1 sibling, 0 replies; 3+ messages in thread
From: Devesh Sharma @ 2017-12-07  4:02 UTC (permalink / raw)
  To: Andrew F. Davis; +Cc: Selvin Xavier, Doug Ledford, Jason Gunthorpe, linux-rdma

looks good, Acked-By: Devesh Sharma <devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>

On Wed, Dec 6, 2017 at 12:45 AM, Andrew F. Davis <afd-l0cyMroinI0@public.gmane.org> wrote:
> Found with scripts/coccinelle/misc/boolconv.cocci.
>
> Signed-off-by: Andrew F. Davis <afd-l0cyMroinI0@public.gmane.org>
> ---
>  drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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 @@ 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,
> --
> 2.15.0
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: IB/ocrdma: Remove unneeded conversions to bool
       [not found] ` <20171205191553.21770-1-afd-l0cyMroinI0@public.gmane.org>
  2017-12-07  4:02   ` Devesh Sharma
@ 2017-12-13 18:20   ` Jason Gunthorpe
  1 sibling, 0 replies; 3+ messages in thread
From: Jason Gunthorpe @ 2017-12-13 18:20 UTC (permalink / raw)
  To: Andrew F. Davis
  Cc: Selvin Xavier, Devesh Sharma, Doug Ledford,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

On Tue, Dec 05, 2017 at 01:15:53PM -0600, Andrew F. Davis wrote:
> Found with scripts/coccinelle/misc/boolconv.cocci.
> 
> Signed-off-by: Andrew F. Davis <afd-l0cyMroinI0@public.gmane.org>
>  drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied to -next

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-13 18:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-05 19:15 [PATCH] IB/ocrdma: Remove unneeded conversions to bool Andrew F. Davis
     [not found] ` <20171205191553.21770-1-afd-l0cyMroinI0@public.gmane.org>
2017-12-07  4:02   ` Devesh Sharma
2017-12-13 18:20   ` Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.