ASoC: adav80x: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 8 Aug 2018 19:19:33 +0000 (14:19 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 9 Aug 2018 13:41:50 +0000 (14:41 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1056531 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/adav80x.c

index db21ecbe07625b5f972797de08ff51694f98c2df..8b9ca7e7a68242b5d2a632f6586fafe9b13e55a6 100644 (file)
@@ -648,6 +648,7 @@ static int adav80x_set_pll(struct snd_soc_component *component, int pll_id,
                        pll_ctrl1 |= ADAV80X_PLL_CTRL1_PLLDIV;
                        break;
                }
+               /* fall through */
        default:
                return -EINVAL;
        }