Skip to content

Commit a540243

Browse files
basutkar-prashanthgregkh
authored andcommitted
Drivers:iio:adc:ti_am335x_adc remove comparison to bool
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>
1 parent 7f752e1 commit a540243

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/iio/adc/ti_am335x_adc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
523523
}
524524
am335x_tsc_se_adc_done(adc_dev->mfd_tscadc);
525525

526-
if (found == false)
526+
if (!found)
527527
ret = -EBUSY;
528528

529529
err_unlock:

0 commit comments

Comments
 (0)