From 6b7cc918f03fd913272ab912fb40f84909d62e74 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 26 Jul 2025 17:44:30 +0200 Subject: [PATCH] target: cortex_a: add break in switch/case The code falls-through in the default case, making it not easy to read. Add the explicit break to improve the readability. Change-Id: I4784b883e0e82258de17018dfdfb59b4042ac743 Signed-off-by: Antonio Borneo Reviewed-on: https://review.openocd.org/c/openocd/+/9049 Tested-by: jenkins Reviewed-by: Tomas Vanek --- src/target/cortex_a.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c index 9e1aa4416..60527c7da 100644 --- a/src/target/cortex_a.c +++ b/src/target/cortex_a.c @@ -2360,6 +2360,7 @@ static int cortex_a_write_cpu_memory(struct target *target, count *= 2; size = 2; } + break; case 0: default: break;