]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: axp20x: Mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 4 Oct 2018 12:52:34 +0000 (14:52 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Oct 2018 14:02:19 +0000 (15:02 +0100)
commit8940a0fd7eb214dc3b7d2085829643ab765daf7a
tree71512d0a5e9056f58a1dfb42daaa4153ab1518de
parente7db18ff21c0124468126b8989951a4fb641f80e
regulator: axp20x: Mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Notice that in this particular case, I moved the whole comment
"Fall through to the check below.", which contains the "Fall through"
comment, at the bottom of the case, which is what GCC is expecting
to find.

Addresses-Coverity-ID: 1436594 ("Missing break in switch")
Addresses-Coverity-ID: 1364475 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c