[6/7] ASoC: samsung: i2s: Mark expected switch fall-through
diff mbox series

Message ID 6be766c659c7c31362c018b75970a0755ac756eb.1533312229.git.gustavo@embeddedor.com
State Accepted
Commit 5019027a566de4986a7f66017cf0d6d794fc155f
Headers show
Series
  • ASoC: Mark expected switch fall-throughs
Related show

Commit Message

Gustavo A. R. Silva Aug. 3, 2018, 4:33 p.m. UTC
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 <gustavo@embeddedor.com>
---
 sound/soc/samsung/i2s.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
index f914ed4..d6c62aa 100644
--- 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;