diff mbox series

[7/7] ASoC: core: mark expected switch fall-through

Message ID 9d6ffc4ad5ecbd4287f5787e66aadc70f9168c2f.1533312229.git.gustavo@embeddedor.com (mailing list archive)
State Accepted
Commit 1a12d5dc7dd1ffd985503f9770b736fb03db2e3f
Headers show
Series ASoC: Mark expected switch fall-throughs | expand

Commit Message

Gustavo A. R. Silva Aug. 3, 2018, 4:34 p.m. UTC
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 146568 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/soc-core.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 82eb386..9cfe10d 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -528,6 +528,7 @@  int snd_soc_suspend(struct device *dev)
 						"ASoC: idle_bias_off CODEC on over suspend\n");
 					break;
 				}
+				/* fall through */
 
 			case SND_SOC_BIAS_OFF:
 				if (component->driver->suspend)