Message ID | 1515123837-32473-1-git-send-email-venkat.prashanth2498@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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: -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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: