diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-06 07:14:51 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-06 14:04:06 +0100 |
commit | ad0eaee6195db1db1749dd46b9e6f4466793d178 (patch) | |
tree | c2f9c36865c8e8e9b706aeb67d9fec2e9b6852d5 | |
parent | 0961503412e3e13d82f885f9fb3af527edd58e47 (diff) | |
download | linux-ad0eaee6195db1db1749dd46b9e6f4466793d178.tar.gz linux-ad0eaee6195db1db1749dd46b9e6f4466793d178.tar.bz2 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
-rw-r--r-- | sound/soc/codecs/wm8994.c | 2 |
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; |