All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] Drivers:iio:adc: remove comparison to bool
@ 2018-01-05  3:43 venkat.prashanth2498
  2018-01-06 12:47 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: venkat.prashanth2498 @ 2018-01-05  3:43 UTC (permalink / raw)
  To: lars, Michael.Hennerich, jic23
  Cc: knaack.h, pmeerw, linux-iio, Venkat Prashanth B U

From: Venkat Prashanth B U <venkat.prashanth2498@gmail.com>

This is the patch to the file ti_am335x_adc.c
which fixes the following coccinelle warning:

WARNING: Comparison to bool

Signed-off-by: Venkat Prashanth B U <venkat.prashanth2498@gmail.com>
---
 drivers/iio/adc/ti_am335x_adc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
index b3e573c..80df5a3 100644
--- a/drivers/iio/adc/ti_am335x_adc.c
+++ b/drivers/iio/adc/ti_am335x_adc.c
@@ -523,7 +523,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
 	}
 	am335x_tsc_se_adc_done(adc_dev->mfd_tscadc);
 
-	if (found == false)
+	if (!found)
 		ret =  -EBUSY;
 
 err_unlock:
-- 
1.9.1


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

* Re: [PATCH 2/2] Drivers:iio:adc: remove comparison to bool
  2018-01-05  3:43 [PATCH 2/2] Drivers:iio:adc: remove comparison to bool venkat.prashanth2498
@ 2018-01-06 12:47 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2018-01-06 12:47 UTC (permalink / raw)
  To: venkat.prashanth2498; +Cc: lars, Michael.Hennerich, knaack.h, pmeerw, linux-iio

On Fri,  5 Jan 2018 09:13:57 +0530
venkat.prashanth2498@gmail.com wrote:

> From: Venkat Prashanth B U <venkat.prashanth2498@gmail.com>
> 
> This is the patch to the file ti_am335x_adc.c
> which fixes the following coccinelle warning:
> 
> WARNING: Comparison to bool
> 
> Signed-off-by: Venkat Prashanth B U <venkat.prashanth2498@gmail.com>
Applied to the togreg branch of iio.git with the subject changed
so that it says what driver this is effecting.

A directory isn't much use to anyone when there are lots of drivers
in it.

I'm what was patch 1/2?

Jonathan
> ---
>  drivers/iio/adc/ti_am335x_adc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
> index b3e573c..80df5a3 100644
> --- a/drivers/iio/adc/ti_am335x_adc.c
> +++ b/drivers/iio/adc/ti_am335x_adc.c
> @@ -523,7 +523,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
>  	}
>  	am335x_tsc_se_adc_done(adc_dev->mfd_tscadc);
>  
> -	if (found == false)
> +	if (!found)
>  		ret =  -EBUSY;
>  
>  err_unlock:


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

end of thread, other threads:[~2018-01-06 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-05  3:43 [PATCH 2/2] Drivers:iio:adc: remove comparison to bool venkat.prashanth2498
2018-01-06 12:47 ` Jonathan Cameron

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.