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:
parent
6c724cb0ad
commit
7737fa6d1e
2 changed files with 2 additions and 2 deletions
|
@ -188,7 +188,7 @@ static ssize_t ad5686_write_dac_powerdown(struct iio_dev *indio_dev,
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (readin == true)
|
if (readin)
|
||||||
st->pwr_down_mask |= (0x3 << (chan->channel * 2));
|
st->pwr_down_mask |= (0x3 << (chan->channel * 2));
|
||||||
else
|
else
|
||||||
st->pwr_down_mask &= ~(0x3 << (chan->channel * 2));
|
st->pwr_down_mask &= ~(0x3 << (chan->channel * 2));
|
||||||
|
|
|
@ -78,7 +78,7 @@ int iio_map_array_unregister(struct iio_dev *indio_dev,
|
||||||
found_it = true;
|
found_it = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (found_it == false) {
|
if (!found_it) {
|
||||||
ret = -ENODEV;
|
ret = -ENODEV;
|
||||||
goto error_ret;
|
goto error_ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue