diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-01 22:52:41 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-02 12:46:11 +0300 |
commit | da41787b9f319a7a23fcc8cf65c6ad646803962e (patch) | |
tree | 396d81cc2e31a6ed361694f665f16a8531617f73 | |
parent | 3eb7dbc6d844d2033271434d02ff90ac9b19e393 (diff) | |
download | linux-da41787b9f319a7a23fcc8cf65c6ad646803962e.tar.xz |
ASoC: wm8904: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 115042 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/wm8904.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 9037a35b931d..1965635ec07c 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c @@ -1455,6 +1455,7 @@ static int wm8904_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { case SND_SOC_DAIFMT_DSP_B: aif1 |= 0x3 | WM8904_AIF_LRCLK_INV; + /* fall through */ case SND_SOC_DAIFMT_DSP_A: aif1 |= 0x3; break; |