mtd: mtdchar: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 5 Mar 2021 08:22:24 +0000 (02:22 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 11:17:42 +0000 (12:17 +0100)
commit0975b633871cb77c3be7f1deb9feb885e3e86b9c
tree47f5bc39147f4f9baea8a5d4c1e9a6580ee8a50a
parentc6f51f1f5527946a83da930b43da2e37dc741dc2
mtd: mtdchar: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210305082224.GA137360@embeddedor
drivers/mtd/mtdchar.c