]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: tlv320aic23: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Wed, 8 Nov 2017 20:04:12 +0000 (14:04 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2017 21:28:01 +0000 (21:28 +0000)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 146566
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic23.c

index 3d42138a7974c0c3df1e2b10207ff54b37c5c229..74909211c608849e8eb81318db0f97292d301e61 100644 (file)
@@ -454,6 +454,7 @@ static int tlv320aic23_set_dai_fmt(struct snd_soc_dai *codec_dai,
                break;
        case SND_SOC_DAIFMT_DSP_A:
                iface_reg |= TLV320AIC23_LRP_ON;
+               /* fall through */
        case SND_SOC_DAIFMT_DSP_B:
                iface_reg |= TLV320AIC23_FOR_DSP;
                break;