summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-03 11:33:57 -0500
committerSylwester Nawrocki <s.nawrocki@samsung.com>2019-03-04 18:05:33 +0100
commitbeb985932da87029eeeed309caebba9fb73735be (patch)
tree4e63e6a7e39fa4a2f61d46689abdc20d9e751dcd
parentb1d7acb5f6056bf7d1773dff0e5242ac11190288 (diff)
downloadlinux-exynos-beb985932da87029eeeed309caebba9fb73735be.tar.gz
linux-exynos-beb985932da87029eeeed309caebba9fb73735be.tar.bz2
linux-exynos-beb985932da87029eeeed309caebba9fb73735be.zip
ASoC: samsung: i2s: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Change-Id: I030b163708ab40f17cf500cff7a8f326b890b7f5 Addresses-Coverity-ID: 1381093 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/samsung/i2s.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
index 846e50646c83..07f815a730df 100644
--- a/sound/soc/samsung/i2s.c
+++ b/sound/soc/samsung/i2s.c
@@ -742,6 +742,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;