projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b01c146
)
cmd: mtdparts: add fallthrough in switch statement
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Thu, 16 Aug 2018 15:30:21 +0000
(17:30 +0200)
committer
Jagan Teki
<jagan@amarulasolutions.com>
Thu, 20 Sep 2018 14:40:49 +0000
(20:10 +0530)
Switch blocks for deriving size naturally use fallthrough between
'case' statements. Make it explicit.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
cmd/mtdparts.c
patch
|
blob
|
history
diff --git
a/cmd/mtdparts.c
b/cmd/mtdparts.c
index 0da3afd75ff03877fa8c5753c6c3887ac0296251..756fc6018f088a7d7403bb7f2a206e13b39f8340 100644
(file)
--- 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;
}