mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 14:43:03 +00:00
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
This commit is contained in:
parent
0975b63387
commit
36a016a572
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user