memstick: host: tifm_ms: mark expected switch fall-throughs
Subsystems (2)
PATCH 1/1 memstick: host: tifm_ms: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/memstick/host/tifm_ms.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/memstick/host/tifm_ms.c +2 -0
@@ -166,9 +166,11 @@ static unsigned int tifm_ms_write_data(struct tifm_ms *host,case 3 : host->io_word |= buf[off +2 ] <<16 ; host->io_pos++; +/* fall through */ case 2 : host->io_word |= buf[off +1 ] <<8 ; host->io_pos++; +/* fall through */ case 1 : host->io_word |= buf[off]; host->io_pos++;
Signature · 1 line
2.7.4