diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-06 07:14:51 -0500 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2018-12-16 22:08:38 +0000 |
commit | 29002321516dd7a79e4840d3800a86f2aaa070c3 (patch) | |
tree | 6adadb6b1d0fa49448c2e4f0a41e6d0757efdd29 | |
parent | 68ca4087a2c47400158dcf91b1556acff835d6b8 (diff) | |
download | linux-stable-29002321516dd7a79e4840d3800a86f2aaa070c3.tar.gz linux-stable-29002321516dd7a79e4840d3800a86f2aaa070c3.tar.bz2 linux-stable-29002321516dd7a79e4840d3800a86f2aaa070c3.zip |
ASoC: wm8994: Fix missing break in switch
commit ad0eaee6195db1db1749dd46b9e6f4466793d178 upstream.
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-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 14258dd51f5e..1105528aa746 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -2427,7 +2427,7 @@ static int wm8994_set_dai_sysclk(struct snd_soc_dai *dai, snd_soc_update_bits(codec, WM8994_POWER_MANAGEMENT_2, WM8994_OPCLK_ENA, 0); } - /* fall through */ + break; default: return -EINVAL; |