From: Gustavo A. R. Silva Date: Thu, 9 Aug 2018 16:05:13 +0000 (-0500) Subject: mtd: block2mtd: mark expected switch fall-throughs X-Git-Tag: v5.15~7386^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98473f5acc0070624746f30a8d6012dc70487740;p=platform%2Fkernel%2Flinux-starfive.git mtd: block2mtd: mark expected switch fall-throughs In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 402015 ("Missing break in switch") Addresses-Coverity-ID: 402016 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva Signed-off-by: Boris Brezillon --- diff --git a/drivers/mtd/devices/block2mtd.c b/drivers/mtd/devices/block2mtd.c index c9e4249..410a3216 100644 --- a/drivers/mtd/devices/block2mtd.c +++ b/drivers/mtd/devices/block2mtd.c @@ -329,8 +329,10 @@ static int ustrtoul(const char *cp, char **endp, unsigned int base) switch (**endp) { case 'G' : result *= 1024; + /* fall through */ case 'M': result *= 1024; + /* fall through */ case 'K': case 'k': result *= 1024;