diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-10-18 16:43:00 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-10-19 17:26:24 +0200 |
commit | 7737fa6d1ea3385428bd36a0dddcb33c526f7d74 (patch) | |
tree | 71c107209d0f72d857179ccde4311533238e2edf /drivers/iio/inkern.c | |
parent | staging:iio:lpc32xx_adc: Use resource_size instead of opencoding it (diff) | |
download | linux-7737fa6d1ea3385428bd36a0dddcb33c526f7d74.tar.xz linux-7737fa6d1ea3385428bd36a0dddcb33c526f7d74.zip |
iio: Don't compare boolean values to true/false
Fixes the following warnings from coccicheck:
drivers/iio/inkern.c:81:6-14: WARNING: Comparison to bool
drivers/iio/dac/ad5686.c:191:5-11: WARNING: Comparison to bool
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/inkern.c')
-rw-r--r-- | drivers/iio/inkern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c index f2b78d4fe457..5230a33886c0 100644 --- a/drivers/iio/inkern.c +++ b/drivers/iio/inkern.c @@ -78,7 +78,7 @@ int iio_map_array_unregister(struct iio_dev *indio_dev, found_it = true; break; } - if (found_it == false) { + if (!found_it) { ret = -ENODEV; goto error_ret; } |