ASoC: fsl_esai: Fix missing break in switch statement
authorS.j. Wang <shengjiu.wang@nxp.com>
Sun, 28 Apr 2019 02:24:27 +0000 (02:24 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 2 May 2019 02:11:48 +0000 (11:11 +0900)
case ESAI_HCKT_EXTAL and case ESAI_HCKR_EXTAL should be
independent of each other, so replace fall-through with break.

Fixes: 43d24e76b698 ("ASoC: fsl_esai: Add ESAI CPU DAI driver")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_esai.c

index c7410bbfd2afa3cda798d3dcf1d81329b2c2b6f0..bad0dfed6b68fca896473e1f09a5913b3aef3630 100644 (file)
@@ -251,7 +251,7 @@ static int fsl_esai_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
                break;
        case ESAI_HCKT_EXTAL:
                ecr |= ESAI_ECR_ETI;
-               /* fall through */
+               break;
        case ESAI_HCKR_EXTAL:
                ecr |= esai_priv->synchronous ? ESAI_ECR_ETI : ESAI_ECR_ERI;
                break;