From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
To: Bard Liao <bardliao@realtek.com>,
Oder Chiou <oder_chiou@realtek.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
Takashi Iwai <tiwai@suse.com>, Mark Brown <broonie@kernel.org>,
"Gustavo A. R. Silva" <gustavo@embeddedor.com>
Subject: [PATCH 03/11] ASoC: rt5677: Mark expected switch fall-through
Date: Wed, 1 Aug 2018 14:50:20 -0500 [thread overview]
Message-ID: <e23dbec89964bff8832d5ff4ae5a50fd1a6c185f.1533151956.git.gustavo@embeddedor.com> (raw)
In-Reply-To: <cover.1533151956.git.gustavo@embeddedor.com>
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 <gustavo@embeddedor.com>
---
sound/soc/codecs/rt5677.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index 8a0181a..922becf 100644
--- 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;
--
2.7.4
next prev parent reply other threads:[~2018-08-01 19:50 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
2018-08-01 19:47 ` [PATCH 01/11] ASoC: wm8961: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-01 19:49 ` [PATCH 02/11] ASoC: rt5640: " Gustavo A. R. Silva
2018-08-01 19:50 ` Gustavo A. R. Silva [this message]
2018-08-01 19:51 ` [PATCH 04/11] ASoC: wm8955: " Gustavo A. R. Silva
2018-08-01 19:51 ` [PATCH 05/11] ASoC: wm8960: " Gustavo A. R. Silva
2018-08-01 19:52 ` [PATCH 06/11] ASoC: wm8904: " Gustavo A. R. Silva
2018-08-01 19:53 ` [PATCH 07/11] ASoC: wm8996: " Gustavo A. R. Silva
2018-08-01 19:54 ` [PATCH 08/11] ASoC: wm8962: " Gustavo A. R. Silva
2018-08-01 19:54 ` [PATCH 09/11] ASoC: wm8995: " Gustavo A. R. Silva
2018-08-01 19:55 ` [PATCH 10/11] ASoC: wm9081: " Gustavo A. R. Silva
2018-08-01 19:56 ` [PATCH 11/11] ASoC: wm8994: " Gustavo A. R. Silva
2018-08-03 16:26 ` valdis.kletnieks
2018-08-03 16:41 ` Gustavo A. R. Silva
2018-08-03 16:45 ` Mark Brown
2018-08-03 16:56 ` Gustavo A. R. Silva
2018-08-03 17:55 ` valdis.kletnieks
2018-08-03 18:24 ` Gustavo A. R. Silva
2018-08-06 11:34 ` Mark Brown
2018-08-06 11:48 ` Gustavo A. R. Silva
2018-08-06 11:52 ` Mark Brown
2018-08-06 11:59 ` Gustavo A. R. Silva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e23dbec89964bff8832d5ff4ae5a50fd1a6c185f.1533151956.git.gustavo@embeddedor.com \
--to=gustavo@embeddedor.com \
--cc=alsa-devel@alsa-project.org \
--cc=bardliao@realtek.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oder_chiou@realtek.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).