acassis commented on code in PR #14818:
URL: https://github.com/apache/nuttx/pull/14818#discussion_r1844998472


##########
drivers/timers/arch_alarm.c:
##########
@@ -102,9 +102,9 @@ static void udelay_coarse(useconds_t microseconds)
 static void oneshot_callback(FAR struct oneshot_lowerhalf_s *lower,
                              FAR void *arg)
 {
-  clock_t now;
-  ONESHOT_TICK_CURRENT(g_oneshot_lower, &now);
+  clock_t now = 0;
 
+  ONESHOT_TICK_CURRENT(g_oneshot_lower, &now);

Review Comment:
   I think this modification is not necessary, since the ONESHOT_TICK_CURRENT 
will set it with the initial value. I think we did it just to fix the compiler 
warning, right?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to