Re: [RFC] treewide: cleanup unreachable breaks

From: Martin Blumenstingl
Date: Sat Oct 17 2020 - 12:24:43 EST


Hi Tom,

(I removed what I believe are irrelevant recipients from this reply)

On Sat, Oct 17, 2020 at 6:10 PM <trix@xxxxxxxxxx> wrote:
[...]
> diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c
> index e03988698755..66dc452d643a 100644
> --- a/drivers/iio/adc/meson_saradc.c
> +++ b/drivers/iio/adc/meson_saradc.c
> @@ -591,17 +591,15 @@ static int meson_sar_adc_iio_info_read_raw(struct iio_dev *indio_dev,
>
> switch (mask) {
> 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) {
> ret = regulator_get_voltage(priv->vref);
> if (ret < 0) {
for drivers/iio/adc/meson_saradc.c:
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx>


Best regards,
Martin