mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
b01c146d18
commit
2b9ace5527
1 changed files with 3 additions and 0 deletions
|
@ -177,13 +177,16 @@ static u64 memsize_parse (const char *const ptr, const char **retptr)
|
||||||
case 'G':
|
case 'G':
|
||||||
case 'g':
|
case 'g':
|
||||||
ret <<= 10;
|
ret <<= 10;
|
||||||
|
/* Fallthrough */
|
||||||
case 'M':
|
case 'M':
|
||||||
case 'm':
|
case 'm':
|
||||||
ret <<= 10;
|
ret <<= 10;
|
||||||
|
/* Fallthrough */
|
||||||
case 'K':
|
case 'K':
|
||||||
case 'k':
|
case 'k':
|
||||||
ret <<= 10;
|
ret <<= 10;
|
||||||
(*retptr)++;
|
(*retptr)++;
|
||||||
|
/* Fallthrough */
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue