diff mbox series

ARM: s3c/jive: add one more "fallthrough" statement

Message ID 20211116092053.4042799-1-arnd@kernel.org (mailing list archive)
State Accepted
Commit fc6303bf30fb2cd2c9d13bc6ecde9788dfa60561
Headers show
Series ARM: s3c/jive: add one more "fallthrough" statement | expand

Commit Message

Arnd Bergmann Nov. 16, 2021, 9:20 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de>

clang warns about one missing fallthrough that gcc ignores:

arch/arm/mach-s3c/mach-jive.c:250:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]

Add it here as well.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm/mach-s3c/mach-jive.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Krzysztof Kozlowski Nov. 16, 2021, 10:24 a.m. UTC | #1
On Tue, 16 Nov 2021 10:20:42 +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> clang warns about one missing fallthrough that gcc ignores:
> 
> arch/arm/mach-s3c/mach-jive.c:250:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
> 
> Add it here as well.
> 
> [...]

Applied, thanks!

[1/1] ARM: s3c/jive: add one more "fallthrough" statement
      commit: 7f9ec9b59c278f31b0c2c8fabcf564e6fc02d4d8

Best regards,
diff mbox series

Patch

diff --git a/arch/arm/mach-s3c/mach-jive.c b/arch/arm/mach-s3c/mach-jive.c
index 0785638a9069..285e1f0f4145 100644
--- a/arch/arm/mach-s3c/mach-jive.c
+++ b/arch/arm/mach-s3c/mach-jive.c
@@ -247,6 +247,7 @@  static int __init jive_mtdset(char *options)
 	case 1:
 		nand->nr_partitions = ARRAY_SIZE(jive_imageB_nand_part);
 		nand->partitions = jive_imageB_nand_part;
+		break;
 	case 0:
 		/* this is already setup in the nand info */
 		break;