Skip to contentSkip to conversation

memstick: host: jmb38x_ms: mark expected switch fall-throughs

PATCH New Gustavo A. R. Silva 1 participant 1 message Jul 3, 2018 Sony memorystick

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memstick: host: jmb38x_ms: mark expected switch fall-throughs

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

---
 drivers/memstick/host/jmb38x_ms.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/memstick/host/jmb38x_ms.c +2 -0
index bcdca9f..49c71f5 100644
@@ -259,9 +259,11 @@ static unsigned int jmb38x_ms_write_data(struct jmb38x_ms_host *host,
 	case 3:
 		host->io_word[0] |= buf[off + 2] << 16;
 		host->io_pos++;
+		/* fall through */
 	case 2:
 		host->io_word[0] |= buf[off + 1] << 8;
 		host->io_pos++;
+		/* fall through */
 	case 1:
 		host->io_word[0] |= buf[off];
 		host->io_pos++;
Signature · 1 line
2.7.4