Commit 5019027a authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Mark Brown

ASoC: samsung: i2s: Mark expected switch fall-through

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a773c3b6
...@@ -710,6 +710,7 @@ static int i2s_hw_params(struct snd_pcm_substream *substream, ...@@ -710,6 +710,7 @@ static int i2s_hw_params(struct snd_pcm_substream *substream,
switch (params_channels(params)) { switch (params_channels(params)) {
case 6: case 6:
val |= MOD_DC2_EN; val |= MOD_DC2_EN;
/* fall through */
case 4: case 4:
val |= MOD_DC1_EN; val |= MOD_DC1_EN;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment