From: Miquel Raynal Date: Thu, 16 Aug 2018 15:30:21 +0000 (+0200) Subject: cmd: mtdparts: add fallthrough in switch statement X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=2b9ace5527d33539844fa831e12ad8357a25246e;p=u-boot.git 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 --- 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; }