aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips/cfi_cmdset_0020.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-03-05 02:19:33 -0600
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-03-11 12:17:39 +0100
commitc6f51f1f5527946a83da930b43da2e37dc741dc2 (patch)
tree0a8cc973d043503e84f32fdf80acc97675694669 /drivers/mtd/chips/cfi_cmdset_0020.c
parentmtd: maps: fix error return code of physmap_flash_remove() (diff)
downloadlinux-dev-c6f51f1f5527946a83da930b43da2e37dc741dc2.tar.xz
linux-dev-c6f51f1f5527946a83da930b43da2e37dc741dc2.zip
mtd: cfi: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements and a return 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> Acked-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210305081933.GA137147@embeddedor
Diffstat (limited to '')
-rw-r--r--drivers/mtd/chips/cfi_cmdset_0020.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0020.c b/drivers/mtd/chips/cfi_cmdset_0020.c
index 270322bca221..d35df526e0a6 100644
--- a/drivers/mtd/chips/cfi_cmdset_0020.c
+++ b/drivers/mtd/chips/cfi_cmdset_0020.c
@@ -1332,6 +1332,8 @@ static int cfi_staa_suspend(struct mtd_info *mtd)
* as the whole point is that nobody can do anything
* with the chip now anyway.
*/
+ break;
+
case FL_PM_SUSPENDED:
break;