summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-06 14:14:51 +0200
committerMark Brown <broonie@kernel.org>2018-08-06 15:04:06 +0200
commitad0eaee6195db1db1749dd46b9e6f4466793d178 (patch)
treec2f9c36865c8e8e9b706aeb67d9fec2e9b6852d5 /sound
parentASoC: qdsp6: q6afe-dai: add SLIM tx AIF_IN dapm (diff)
downloadlinux-ad0eaee6195db1db1749dd46b9e6f4466793d178.tar.xz
linux-ad0eaee6195db1db1749dd46b9e6f4466793d178.zip
ASoC: wm8994: Fix missing break in switch
Add missing break statement in order to prevent the code from falling through to the default case. Addresses-Coverity-ID: 115050 ("Missing break in switch") Reported-by: Valdis Kletnieks <valdis.kletnieks@vt.edu> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8994.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 62f8c5b9ba92..14f1b0c0d286 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -2432,7 +2432,7 @@ static int wm8994_set_dai_sysclk(struct snd_soc_dai *dai,
snd_soc_component_update_bits(component, WM8994_POWER_MANAGEMENT_2,
WM8994_OPCLK_ENA, 0);
}
- /* fall through */
+ break;
default:
return -EINVAL;