ASoC: samsung: i2s: Mark expected switch fall-through 36/200636/2
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 3 Aug 2018 16:33:57 +0000 (11:33 -0500)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 4 Mar 2019 17:05:33 +0000 (18:05 +0100)
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>
sound/soc/samsung/i2s.c

index 846e506..07f815a 100644 (file)
@@ -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;