]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: core: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 3 Aug 2018 16:34:30 +0000 (11:34 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 3 Aug 2018 16:42:36 +0000 (17:42 +0100)
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>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c

index 82eb3868be67d9cc1a194dc5dfaaa24f386095c0..9cfe10d8040cf8f0cea83d85d2dfb68a6b508f6d 100644 (file)
@@ -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)