Skip to content

Commit b5e736b

Browse files
tapaswenipathakgregkh
authored andcommitted
staging: iio: accel: remove else after return
This patch fixes checkpatch.pl warning in files of iio: accel WARNING : else is not generally useful after a break or return Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0f8ad68 commit b5e736b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎drivers/staging/iio/accel/adis16240_core.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ static int adis16240_read_raw(struct iio_dev *indio_dev,
9999
*val = 4;
100100
*val2 = 880000; /* 4.88 mV */
101101
return IIO_VAL_INT_PLUS_MICRO;
102-
} else {
103-
return -EINVAL;
104102
}
103+
return -EINVAL;
105104
case IIO_TEMP:
106105
*val = 244; /* 0.244 C */
107106
*val2 = 0;

‎drivers/staging/iio/accel/lis3l02dq_ring.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ irqreturn_t lis3l02dq_data_rdy_trig_poll(int irq, void *private)
3434
if (st->trigger_on) {
3535
iio_trigger_poll(st->trig);
3636
return IRQ_HANDLED;
37-
} else
38-
return IRQ_WAKE_THREAD;
37+
}
38+
return IRQ_WAKE_THREAD;
3939
}
4040

4141
static const u8 read_all_tx_array[] = {

0 commit comments

Comments
 (0)