Re: [PATCH 2/2] Drivers:iio:adc: remove comparison to bool

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

 



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

> From: Venkat Prashanth B U <venkat.prashanth2498@xxxxxxxxx>
> 
> 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@xxxxxxxxx>
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:

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" 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]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux