summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-08-16 17:30:21 +0200
committerJagan Teki <jagan@amarulasolutions.com>2018-09-20 20:10:49 +0530
commit2b9ace5527d33539844fa831e12ad8357a25246e (patch)
tree0f15b7860d314e2d9da7d74f995f392270a7a1b6
parentb01c146d182da12e0b60022b34d15fd3a0c0f0fc (diff)
cmd: mtdparts: add fallthrough in switch statement
Switch blocks for deriving size naturally use fallthrough between 'case' statements. Make it explicit. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
-rw-r--r--cmd/mtdparts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c
index 0da3afd75f..756fc6018f 100644
--- a/cmd/mtdparts.c
+++ b/cmd/mtdparts.c
@@ -177,13 +177,16 @@ static u64 memsize_parse (const char *const ptr, const char **retptr)
case 'G':
case 'g':
ret <<= 10;
+ /* Fallthrough */
case 'M':
case 'm':
ret <<= 10;
+ /* Fallthrough */
case 'K':
case 'k':
ret <<= 10;
(*retptr)++;
+ /* Fallthrough */
default:
break;
}