diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2024-09-16 13:45:19 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2025-01-25 10:31:06 +0000 |
commit | 3099547069896ccff054d64bac6041fe1e20add9 (patch) | |
tree | b2c4e2b0659265152bd4d4eb9a2e5ef9665bc873 /src/rtos/hwthread.c | |
parent | 8e89a8af63f242290c800d6f640b432d3af9ec89 (diff) | |
download | riscv-openocd-3099547069896ccff054d64bac6041fe1e20add9.zip riscv-openocd-3099547069896ccff054d64bac6041fe1e20add9.tar.gz riscv-openocd-3099547069896ccff054d64bac6041fe1e20add9.tar.bz2 |
OpenOCD: fix code indentation
Fix checkpatch errors
ERROR:SUSPECT_CODE_INDENT: suspect code indent for
conditional statements
Change-Id: I94d4fa5720c25dd2fb0334a824cd9026babcce4e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8497
Tested-by: jenkins
Diffstat (limited to 'src/rtos/hwthread.c')
-rw-r--r-- | src/rtos/hwthread.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/rtos/hwthread.c b/src/rtos/hwthread.c index 1890a3d..c9f1a17 100644 --- a/src/rtos/hwthread.c +++ b/src/rtos/hwthread.c @@ -154,9 +154,8 @@ static int hwthread_update_threads(struct rtos *rtos) if (curr->debug_reason == DBG_REASON_SINGLESTEP) { current_reason = curr->debug_reason; current_thread = tid; - } else - /* multiple breakpoints, prefer gdbs' threadid */ - if (curr->debug_reason == DBG_REASON_BREAKPOINT) { + } else if (curr->debug_reason == DBG_REASON_BREAKPOINT) { + /* multiple breakpoints, prefer gdbs' threadid */ if (tid == rtos->current_threadid) current_thread = tid; } @@ -176,8 +175,7 @@ static int hwthread_update_threads(struct rtos *rtos) curr->debug_reason == DBG_REASON_BREAKPOINT) { current_reason = curr->debug_reason; current_thread = tid; - } else - if (curr->debug_reason == DBG_REASON_DBGRQ) { + } else if (curr->debug_reason == DBG_REASON_DBGRQ) { if (tid == rtos->current_threadid) current_thread = tid; } |