diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-03-05 11:28:32 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-04-15 23:00:43 +0300 |
commit | 8aa058d79b6d491778836626ba94a5165589acaf (patch) | |
tree | e2409dae63e4fc5a3a4052341d0f979d3d4b6a29 /drivers/mtd/ubi | |
parent | 829ad58a04e28e1979cc8b9ac7d2db69cc44dc80 (diff) | |
download | linux-8aa058d79b6d491778836626ba94a5165589acaf.tar.xz |
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 <gustavoars@kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r-- | drivers/mtd/ubi/build.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index f399edc82191..a7e3eb9befb6 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: |