summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-01 14:51:59 -0500
committerMark Brown <broonie@kernel.org>2018-08-02 10:46:11 +0100
commit3eb7dbc6d844d2033271434d02ff90ac9b19e393 (patch)
tree0dbabc2dda147b56b64e3e7c7e5359d1a2434c7b
parent85e7e77079f3201799467803f6c8533a9921e32d (diff)
downloadop-kernel-dev-3eb7dbc6d844d2033271434d02ff90ac9b19e393.zip
op-kernel-dev-3eb7dbc6d844d2033271434d02ff90ac9b19e393.tar.gz
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>
-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 c30f5aa..8dc1f3d 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));
OpenPOWER on IntegriCloud