]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: tpa6130a2: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Wed, 8 Nov 2017 20:04:22 +0000 (14:04 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2017 21:28:15 +0000 (21:28 +0000)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115164
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tpa6130a2.c

index 2e014c80d11387d483e7b9ce7411e8ae127abdc2..616cd4bebd01ee9bc455e3a1d3ea4271db87fdd2 100644 (file)
@@ -274,6 +274,7 @@ static int tpa6130a2_probe(struct i2c_client *client,
        default:
                dev_warn(dev, "Unknown TPA model (%d). Assuming 6130A2\n",
                         data->id);
+               /* fall through */
        case TPA6130A2:
                regulator = "Vdd";
                break;