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 4d69927a8f2fe53298e09448b8b549304e8fa9ed Author: ouyangxiangzhen <[email protected]> AuthorDate: Wed May 20 11:14:16 2026 +0800 sched/hrtimer: Remove unnecessary expired != now check This commit removed unnecessary expired != now check. Assisted-By: mimo-v2.6-pro Signed-off-by: ouyangxiangzhen <[email protected]> --- sched/hrtimer/hrtimer.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sched/hrtimer/hrtimer.h b/sched/hrtimer/hrtimer.h index ba7d5828d39..b5f68396524 100644 --- a/sched/hrtimer/hrtimer.h +++ b/sched/hrtimer/hrtimer.h @@ -700,12 +700,7 @@ static inline_function void hrtimer_process(uint64_t now) /* Schedule the next timer expiration */ - if (expired != now) - { - /* Start timer for the next earliest expiration */ - - hrtimer_reprogram(expired); - } + hrtimer_reprogram(expired); /* Release the lock and give up the ownership of the hrtimer queue. */
