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

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

index 807040bb39215a714626da890339966791c7ab38..a3206e65e5e54d3abc84eea1f66fd02cd512e0bb 100644 (file)
@@ -340,6 +340,7 @@ static int davinci_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai,
                 * rate is lowered.
                 */
                inv_fs = true;
+               /* fall through */
        case SND_SOC_DAIFMT_DSP_A:
                dev->mode = MOD_DSP_A;
                break;