]> git.baikalelectronics.ru Git - kernel.git/commit
ubi: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 5 Mar 2021 08:28:32 +0000 (02:28 -0600)
committerRichard Weinberger <richard@nod.at>
Thu, 15 Apr 2021 20:00:43 +0000 (22:00 +0200)
commit174bd32802f2a7d1ccc95405c5714b19146f5c4e
treee2409dae63e4fc5a3a4052341d0f979d3d4b6a29
parent3cb8fa3f13a4f52b7fab6a7d05017275872ef3ec
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>
drivers/mtd/ubi/build.c