mtd: block2mtd: mark expected switch fall-throughs
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/mtd/devices/block2mtd.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mtd/devices/block2mtd.c +2 -0
@@ -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 ;
Signature · 1 line
2.7.4
Boris Brezillon
AppliedQuoted 6 lines · Gustavo A. R. Silva
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 <[email protected]>
Applied to http://git.infradead.org/linux-mtd.git mtd/next, thanks.
Boris