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:
Miquel Raynal 2018-08-16 17:30:21 +02:00 committed by Jagan Teki
parent b01c146d18
commit 2b9ace5527

View file

@ -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;
}