iio: remove unneeded break
Subsystems (2)
PATCH 1/1 iio: remove unneeded break
From: Tom Rix <[email protected]>
A break is not needed if it is preceded by a return
Signed-off-by Tom Rix <[email protected]>
--- drivers/iio/adc/meson_saradc.c | 2 -- drivers/iio/imu/bmi160/bmi160_core.c | 1 - 2 files changed, 3 deletions(-)
drivers/iio/adc/meson_saradc.c +0 -2
@@ -593,13 +593,11 @@ static int meson_sar_adc_iio_info_read_raw(struct iio_dev *indio_dev,case IIO_CHAN_INFO_RAW :return meson_sar_adc_get_sample (indio_dev, chan,NO_AVERAGING ,ONE_SAMPLE , val); -break ;case IIO_CHAN_INFO_AVERAGE_RAW :return meson_sar_adc_get_sample (indio_dev, chan,MEAN_AVERAGING ,EIGHT_SAMPLES , val); -break ;case IIO_CHAN_INFO_SCALE :if (chan->type ==IIO_VOLTAGE ) {
drivers/iio/imu/bmi160/bmi160_core.c +0 -1
@@ -486,7 +486,6 @@ static int bmi160_write_raw(struct iio_dev *indio_dev,case IIO_CHAN_INFO_SCALE :return bmi160_set_scale (data,bmi160_to_sensor (chan->type), val2); -break ;case IIO_CHAN_INFO_SAMP_FREQ :return bmi160_set_odr (data,bmi160_to_sensor (chan->type), val, val2);
Signature · 1 line
2.18.1
Quoted 8 lines · On Mon, Oct 19, 2020 at 7:28 PM <[email protected]> wrote:
From: Tom Rix <[email protected]>
A break is not needed if it is preceded by a return
Signed-off-by Tom Rix <[email protected]>--- drivers/iio/adc/meson_saradc.c | 2 --
for meson_saradc.c:
Reviewed-by Martin Blumenstingl <[email protected]>
Quoted 11 lines · On Tue, 20 Oct 2020 21:39:17 +0200 Martin Blumenstingl…
Quoted 8 lines · On Mon, Oct 19, 2020 at 7:28 PM <[email protected]> wrote:
From: Tom Rix <[email protected]>
A break is not needed if it is preceded by a return
Signed-off-by Tom Rix <[email protected]>--- drivers/iio/adc/meson_saradc.c | 2 --for
meson_saradc.c:Reviewed-by Martin Blumenstingl <[email protected]>
Applied,
Thanks,
Jonathan