Drivers:iio:adc:ti_am335x_adc remove comparison to bool
authorVenkat Prashanth B U <venkat.prashanth2498@gmail.com>
Fri, 5 Jan 2018 03:43:57 +0000 (09:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:43 +0000 (16:03 +0100)
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>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ti_am335x_adc.c

index b3e573cc6f5fc19ca43354b58fb84a0caf54e749..80df5a377d30a335d601a94aa9d1d2e0925aff13 100644 (file)
@@ -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: