]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: omap-dmic: Mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 3 Aug 2018 16:31:48 +0000 (11:31 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 3 Aug 2018 16:59:25 +0000 (17:59 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1468847 ("Missing break in switch")
Addresses-Coverity-ID: 1468849 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/omap/omap-dmic.c

index 51dd7c65096bd62c67013bea6e7e383e48c626a3..fe966272bd0cd0ba6d049bb60d80f759722eb96d 100644 (file)
@@ -213,8 +213,10 @@ static int omap_dmic_dai_hw_params(struct snd_pcm_substream *substream,
        switch (channels) {
        case 6:
                dmic->ch_enabled |= OMAP_DMIC_UP3_ENABLE;
+               /* fall through */
        case 4:
                dmic->ch_enabled |= OMAP_DMIC_UP2_ENABLE;
+               /* fall through */
        case 2:
                dmic->ch_enabled |= OMAP_DMIC_UP1_ENABLE;
                break;