Commit 6fae58f3 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Jonathan Cameron

staging:iio: Don't compare boolean values with true/false

Fixes the following coccicheck warnings:
	drivers/staging/iio/accel/lis3l02dq_ring.c:240:5-10: WARNING: Comparison to bool
	drivers/staging/iio/iio_dummy_evgen.c:111:6-25: WARNING: Comparison to bool
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent cdf71c7f
...@@ -237,7 +237,7 @@ static int lis3l02dq_data_rdy_trigger_set_state(struct iio_trigger *trig, ...@@ -237,7 +237,7 @@ static int lis3l02dq_data_rdy_trigger_set_state(struct iio_trigger *trig,
u8 t; u8 t;
__lis3l02dq_write_data_ready_config(indio_dev, state); __lis3l02dq_write_data_ready_config(indio_dev, state);
if (state == false) { if (!state) {
/* /*
* A possible quirk with the handler is currently worked around * A possible quirk with the handler is currently worked around
* by ensuring outstanding read events are cleared. * by ensuring outstanding read events are cleared.
......
...@@ -108,7 +108,7 @@ int iio_dummy_evgen_get_irq(void) ...@@ -108,7 +108,7 @@ int iio_dummy_evgen_get_irq(void)
mutex_lock(&iio_evgen->lock); mutex_lock(&iio_evgen->lock);
for (i = 0; i < IIO_EVENTGEN_NO; i++) for (i = 0; i < IIO_EVENTGEN_NO; i++)
if (iio_evgen->inuse[i] == false) { if (!iio_evgen->inuse[i]) {
ret = iio_evgen->base + i; ret = iio_evgen->base + i;
iio_evgen->inuse[i] = true; iio_evgen->inuse[i] = true;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment