Browse Source

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>
Chris Ruffin 11 years ago
parent
commit
d6be7a02d9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      drivers/staging/iio/accel/lis3l02dq_ring.c

+ 3 - 2
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) {
 	if (st->trigger_on) {
 		iio_trigger_poll(st->trig);
 		iio_trigger_poll(st->trig);
 		return IRQ_HANDLED;
 		return IRQ_HANDLED;
-	} else
-		return IRQ_WAKE_THREAD;
+	}
+
+	return IRQ_WAKE_THREAD;
 }
 }
 
 
 static const u8 read_all_tx_array[] = {
 static const u8 read_all_tx_array[] = {