diff options
author | Chris Ruffin <cmruffin@gmail.com> | 2014-09-15 00:38:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-09-21 13:18:08 +0100 |
commit | d6be7a02d9cf817d3e3d19167d87e52260620ecd (patch) | |
tree | a3f607918f51756b3844f9d9f468dcc3622d7547 | |
parent | 3f76a4ea5383ba2f9e76f9625f77ff246907a134 (diff) | |
download | linux-d6be7a02d9cf817d3e3d19167d87e52260620ecd.tar.bz2 |
staging: iio: accel: remove unnecessary syntax
The else clause in the conditional of lis3l02dq_data_rdy_trig_poll()
does not make consistent use of braces with the rest of the
conditional. Fix this coding style problem by removing the
unnecessary conditional altogether.
Signed-off-by: Chris Ruffin <cmruffin@gmail.com>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/staging/iio/accel/lis3l02dq_ring.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/iio/accel/lis3l02dq_ring.c b/drivers/staging/iio/accel/lis3l02dq_ring.c index 1d934ee3bb5f..9efc77b0ebdd 100644 --- a/drivers/staging/iio/accel/lis3l02dq_ring.c +++ b/drivers/staging/iio/accel/lis3l02dq_ring.c @@ -34,8 +34,9 @@ irqreturn_t lis3l02dq_data_rdy_trig_poll(int irq, void *private) if (st->trigger_on) { iio_trigger_poll(st->trig); return IRQ_HANDLED; - } else - return IRQ_WAKE_THREAD; + } + + return IRQ_WAKE_THREAD; } static const u8 read_all_tx_array[] = { |