diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-10-18 18:43:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-10-19 19:26:24 +0400 |
commit | 7737fa6d1ea3385428bd36a0dddcb33c526f7d74 (patch) | |
tree | 71c107209d0f72d857179ccde4311533238e2edf /drivers/iio/dac/ad5686.c | |
parent | 6c724cb0ad772ae43928467f0a44731848eb22b2 (diff) | |
download | linux-7737fa6d1ea3385428bd36a0dddcb33c526f7d74.tar.xz |
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/dac/ad5686.c')
-rw-r--r-- | drivers/iio/dac/ad5686.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c index 6948d75e1036..bc92ff9309c2 100644 --- a/drivers/iio/dac/ad5686.c +++ b/drivers/iio/dac/ad5686.c @@ -188,7 +188,7 @@ static ssize_t ad5686_write_dac_powerdown(struct iio_dev *indio_dev, if (ret) return ret; - if (readin == true) + if (readin) st->pwr_down_mask |= (0x3 << (chan->channel * 2)); else st->pwr_down_mask &= ~(0x3 << (chan->channel * 2)); |