Re: [PATCH] IB/ocrdma: Remove unneeded conversions to bool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



looks good, Acked-By: Devesh Sharma <devesh.sharma@xxxxxxxxxxxx>

On Wed, Dec 6, 2017 at 12:45 AM, Andrew F. Davis <afd@xxxxxx> wrote:
> Found with scripts/coccinelle/misc/boolconv.cocci.
>
> Signed-off-by: Andrew F. Davis <afd@xxxxxx>
> ---
>  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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux