1
0
Fork 0

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>
hifive-unleashed-5.1
Tapasweni Pathak 2014-09-22 14:50:22 +05:30 committed by Greg Kroah-Hartman
parent 0f8ad68b23
commit b5e736bd68
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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[] = {