projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb4c2b
)
ASoC: wm8961: Mark expected switch fall-through
author
Gustavo A. R. Silva
<
[email protected]
>
Wed, 1 Aug 2018 19:47:09 +0000
(14:47 -0500)
committer
Mark Brown
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/wm8961.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8961.c
b/sound/soc/codecs/wm8961.c
index f70f563d59f3e98b989d0712c334cfe41e7bba27..68b4cadc308fb1a841ee00b44d525d6d92f10a13 100644
(file)
--- a/
sound/soc/codecs/wm8961.c
+++ b/
sound/soc/codecs/wm8961.c
@@
-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) {