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:
a773c3b
)
ASoC: samsung: i2s: Mark expected switch fall-through
author
Gustavo A. R. Silva
<
[email protected]
>
Fri, 3 Aug 2018 16:33:57 +0000
(11:33 -0500)
committer
Mark Brown
<
[email protected]
>
Fri, 3 Aug 2018 16:59:29 +0000
(17:59 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID:
1381093
("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/samsung/i2s.c
patch
|
blob
|
history
diff --git
a/sound/soc/samsung/i2s.c
b/sound/soc/samsung/i2s.c
index f914ed45db7d6b72c97af5b4822fc1f9144044b3..d6c62aa130414369f729bbc5333c82052bdcc9d2 100644
(file)
--- a/
sound/soc/samsung/i2s.c
+++ b/
sound/soc/samsung/i2s.c
@@
-710,6
+710,7
@@
static int i2s_hw_params(struct snd_pcm_substream *substream,
switch (params_channels(params)) {
case 6:
val |= MOD_DC2_EN;
+ /* fall through */
case 4:
val |= MOD_DC1_EN;
break;