mtd: rawnand: stm32_fmc2: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 5 Mar 2021 08:29:53 +0000 (02:29 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 11:17:48 +0000 (12:17 +0100)
commit3ba6d1ff041f07cfbbe1fdf0f25094590d7e543e
tree30be9080a3490c011a9fc6b4f4b7880b56ba878e
parentfe1bc21f447289670c331d4826aea8f3ff38ae6e
mtd: rawnand: stm32_fmc2: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a couple
of warnings by explicitly adding a couple of break statements 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/20210305082953.GA137771@embeddedor
drivers/mtd/nand/raw/stm32_fmc2_nand.c