ASoC: wm8996: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 1 Aug 2018 19:53:19 +0000 (14:53 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 2 Aug 2018 09:46:12 +0000 (10:46 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

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

index d9d206046f8cb2490cd685dd8cb77c4f810a0cb0..78a408236cfb32c4d07e92d2f32f2f9a9c8d73c9 100644 (file)
@@ -1858,6 +1858,7 @@ static int wm8996_set_sysclk(struct snd_soc_dai *dai,
        case 24576000:
                ratediv = WM8996_SYSCLK_DIV;
                wm8996->sysclk /= 2;
+               /* fall through */
        case 11289600:
        case 12288000:
                snd_soc_component_update_bits(component, WM8996_AIF_RATE,