projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36a016a
)
mtd: rawnand: fsmc: Fix fall-through warnings for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Fri, 5 Mar 2021 08:25:59 +0000
(
02:25
-0600)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 11:17:46 +0000
(12:17 +0100)
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/20210305082559.GA137646@embeddedor
drivers/mtd/nand/raw/fsmc_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/fsmc_nand.c
b/drivers/mtd/nand/raw/fsmc_nand.c
index 0101c0fab50adc0fca17ee7b5563f94743f793d1..a5d1bd0ff13563339569a469d1b116481dd82c4e 100644
(file)
--- a/
drivers/mtd/nand/raw/fsmc_nand.c
+++ b/
drivers/mtd/nand/raw/fsmc_nand.c
@@
-930,6
+930,7
@@
static int fsmc_nand_attach_chip(struct nand_chip *nand)
"Using 4-bit SW BCH ECC scheme\n");
break;
}
+ break;
case NAND_ECC_ENGINE_TYPE_ON_DIE:
break;