]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: onenand: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 5 Mar 2021 08:23:56 +0000 (02:23 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 11:17:44 +0000 (12:17 +0100)
commite0dec198f9f898e7776aa53d989dc1530bb91797
tree034bc973402d16cd91a6acd622e562a1f67c5d2c
parentb030d9d6ab2365d4130d419787fd064e849dd45f
mtd: onenand: 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/20210305082356.GA137489@embeddedor
drivers/mtd/nand/onenand/onenand_samsung.c