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:
065dcc2
)
ASoC: rt5677: Mark expected switch fall-through
author
Gustavo A. R. Silva
<
[email protected]
>
Wed, 1 Aug 2018 19:50:20 +0000
(14:50 -0500)
committer
Mark Brown
<
[email protected]
>
Thu, 2 Aug 2018 09:46:09 +0000
(10:46 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID:
1271174
("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/rt5677.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rt5677.c
b/sound/soc/codecs/rt5677.c
index 8a0181a2db085459cb974d30d81f0d100880490b..922becfee59be04dfa39acb38bdd41cc07a2fb26 100644
(file)
--- a/
sound/soc/codecs/rt5677.c
+++ b/
sound/soc/codecs/rt5677.c
@@
-4417,6
+4417,7
@@
static int rt5677_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
break;
case 25:
slot_width_25 = 0x8080;
+ /* fall through */
case 24:
val |= (2 << 8);
break;