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

Addresses-Coverity-ID: 1271173 ("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/wm8961.c

index f70f563d59f3e98b989d0712c334cfe41e7bba27..68b4cadc308fb1a841ee00b44d525d6d92f10a13 100644 (file)
@@ -653,6 +653,7 @@ static int wm8961_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 
        case SND_SOC_DAIFMT_DSP_B:
                aif |= WM8961_LRP;
+               /* fall through */
        case SND_SOC_DAIFMT_DSP_A:
                aif |= 3;
                switch (fmt & SND_SOC_DAIFMT_INV_MASK) {