ASoC: wm8960: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 1 Aug 2018 19:51:59 +0000 (14:51 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 2 Aug 2018 09:46:11 +0000 (10:46 +0100)
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>
sound/soc/codecs/wm8960.c

index c30f5aa392c6aea25c35f8c0b9710006fd19894d..8dc1f3d6a988e88fbb76c42b44e0e3b280d8a86f 100644 (file)
@@ -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));