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>
This commit is contained in:

committed by
Jonathan Cameron

parent
6c724cb0ad
commit
7737fa6d1e
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user