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 1979968f0e3c9daca98e46ec00e06e96e024e8c1
Author: ouyangxiangzhen <[email protected]>
AuthorDate: Fri Nov 27 15:38:35 2026 +0800

    sched/clock: fix nxstyle in clock_settime date delta init
    
    Move the initializer of zerodelta to its own line to satisfy the
    nxstyle left-bracket rule.
    
    Signed-off-by: ouyangxiangzhen <[email protected]>
---
 sched/clock/clock_settime.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sched/clock/clock_settime.c b/sched/clock/clock_settime.c
index d8869c063a3..6bea1cf4358 100644
--- a/sched/clock/clock_settime.c
+++ b/sched/clock/clock_settime.c
@@ -66,9 +66,10 @@ static void nxclock_set_realtime(FAR const struct timespec 
*tp)
   struct timespec bias;
   irqstate_t flags;
 #  ifdef CONFIG_CLOCK_ADJTIME
-  const struct timeval zerodelta = {
-    0, 0
-  };
+  const struct timeval zerodelta =
+    {
+      0, 0
+    };
 #  endif
 
   /* Interrupts are disabled here so that the in-memory time

Reply via email to