mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
0f8ad68b23
commit
b5e736bd68
|
@ -99,9 +99,8 @@ static int adis16240_read_raw(struct iio_dev *indio_dev,
|
|||
*val = 4;
|
||||
*val2 = 880000; /* 4.88 mV */
|
||||
return IIO_VAL_INT_PLUS_MICRO;
|
||||
} else {
|
||||
return -EINVAL;
|
||||
}
|
||||
return -EINVAL;
|
||||
case IIO_TEMP:
|
||||
*val = 244; /* 0.244 C */
|
||||
*val2 = 0;
|
||||
|
|
|
@ -34,8 +34,8 @@ 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[] = {
|
||||
|
|
Loading…
Reference in New Issue