iio: remove unneeded break
authorTom Rix <trix@redhat.com>
Mon, 19 Oct 2020 17:28:24 +0000 (10:28 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 1 Nov 2020 15:31:56 +0000 (15:31 +0000)
A break is not needed if it is preceded by a return

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20201019172824.32166-1-trix@redhat.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/meson_saradc.c
drivers/iio/imu/bmi160/bmi160_core.c

index e03988698755fed2fce16cdadb145a1ee6dd2868..66dc452d643abd8a5319c7b20d5078d3bf320e1e 100644 (file)
@@ -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) {
index 222ebb26f01320acba7723c0b11b9425d1611dfe..431076dc0d2c7903fc21e164cceae3eadb02a822 100644 (file)
@@ -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);