From: Gustavo A. R. Silva Date: Fri, 5 Mar 2021 08:28:32 +0000 (-0600) Subject: ubi: Fix fall-through warnings for Clang X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8aa058d79b6d491778836626ba94a5165589acaf;p=linux.git ubi: Fix fall-through warnings for Clang In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva Signed-off-by: Richard Weinberger --- diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index f399edc821912..a7e3eb9befb62 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -1350,6 +1350,7 @@ static int bytes_str_to_int(const char *str) fallthrough; case 'K': result *= 1024; + break; case '\0': break; default: