This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 41714699085968af08f89a51d70c46aef893adc7
Author: ouyangxiangzhen <[email protected]>
AuthorDate: Wed Nov 18 14:16:11 2026 +0800

    sched/irq: fix alignment of intstack check in irq_dispatch
    
    The DEBUGASSERT(up_check_intstack(...)) statement in irq_dispatch was
    indented from the #if block instead of the enclosing function body,
    which is a style violation (Bad alignment) in the NuttX nxstyle check.
    
    Align the statement to the function body indent (2 spaces) with its
    continuation argument aligned to the call.
    
    This is a series-original fix: the mis-alignment is an existing upstream
    style wart, not introduced by this series.
    
    Assisted-By: mimo-v2.6-pro
    Signed-off-by: ouyangxiangzhen <[email protected]>
---
 sched/irq/irq_dispatch.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sched/irq/irq_dispatch.c b/sched/irq/irq_dispatch.c
index bf4dec7470a..713fee3f40d 100644
--- a/sched/irq/irq_dispatch.c
+++ b/sched/irq/irq_dispatch.c
@@ -159,7 +159,7 @@ void irq_dispatch(int irq, FAR void *context)
 
 #if defined(CONFIG_STACKCHECK_MARGIN) && (CONFIG_STACKCHECK_MARGIN > 0) && \
     defined(CONFIG_ARCH_INTERRUPTSTACK) && (CONFIG_ARCH_INTERRUPTSTACK > 0)
-    DEBUGASSERT(up_check_intstack(this_cpu(),
-                                  CONFIG_STACKCHECK_MARGIN) == 0);
+  DEBUGASSERT(up_check_intstack(this_cpu(),
+              CONFIG_STACKCHECK_MARGIN) == 0);
 #endif
 }

Reply via email to