From 8995d9e4a71d243c84dee4d931facaca504457ea Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Wed, 7 May 2025 21:44:04 -0300 Subject: [PATCH] sched: Fix typo on queue.h This typo was in the dq_insert_mid() macro introduced in the https://github.com/apache/nuttx/pull/13616 This issue was found by Serg Podtynnyi Signed-off-by: Alan Carvalho de Assis --- sched/sched/queue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sched/sched/queue.h b/sched/sched/queue.h index 320638b1989c8..28be9f6ab2165 100644 --- a/sched/sched/queue.h +++ b/sched/sched/queue.h @@ -63,12 +63,12 @@ } \ while (0) -#define dq_insert_mid(pre, mid, next) \ +#define dq_insert_mid(prev, mid, next) \ do \ { \ mid->flink = next; \ mid->blink = prev; \ - pre->flink = mid; \ + prev->flink = mid; \ next->blink = mid; \ } \ while (0)