]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cyapa - mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 15 Oct 2018 18:21:18 +0000 (11:21 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 15 Oct 2018 18:24:10 +0000 (11:24 -0700)
commit8275c1d285d463bd9961fdac30380e3a40ede751
tree208100f7c2301d25496c8df64e576fe00b1200b6
parentf10179025cceb6637fba235492ff7200ea82e663
Input: cyapa - 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 replaced the "Fallthrough state"
commern with a proper "Fall through", which is what GCC is expecting to
find.

Addresses-Coverity-ID: 114758 ("Missing break in switch")
Addresses-Coverity-ID: 114759 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa_gen3.c