summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8960.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-01 21:51:59 +0200
committerMark Brown <broonie@kernel.org>2018-08-02 11:46:11 +0200
commit3eb7dbc6d844d2033271434d02ff90ac9b19e393 (patch)
tree0dbabc2dda147b56b64e3e7c7e5359d1a2434c7b /sound/soc/codecs/wm8960.c
parentASoC: wm8955: Mark expected switch fall-through (diff)
downloadlinux-3eb7dbc6d844d2033271434d02ff90ac9b19e393.tar.xz
linux-3eb7dbc6d844d2033271434d02ff90ac9b19e393.zip
ASoC: wm8960: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 115041 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8960.c')
-rw-r--r--sound/soc/codecs/wm8960.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index c30f5aa392c6..8dc1f3d6a988 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -839,6 +839,7 @@ static int wm8960_hw_params(struct snd_pcm_substream *substream,
iface |= 0x000c;
break;
}
+ /* fall through */
default:
dev_err(component->dev, "unsupported width %d\n",
params_width(params));