mtd: onenand: Fix fall-through warnings for Clang
Subsystems (3)
PATCH RESEND 1/1 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.
--- drivers/mtd/nand/onenand/onenand_samsung.c | 1 + 1 file changed, 1 insertion(+)
drivers/mtd/nand/onenand/onenand_samsung.c +1 -0
@@ -396,6 +396,7 @@ static int s3c_onenand_command(struct mtd_info *mtd, int cmd, loff_t addr,case ONENAND_CMD_READOOB :case ONENAND_CMD_BUFFERRAM :ONENAND_SET_NEXT_BUFFERRAM (this); +break ;default :break ; }
Signature · 1 line
2.27.0
Quoted 6 lines · Gustavo A. R. Silva
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.
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel