aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/include/chinline.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/kernel/include/chinline.h')
-rw-r--r--os/kernel/include/chinline.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/kernel/include/chinline.h b/os/kernel/include/chinline.h
index a0beb7455..f41c12cc2 100644
--- a/os/kernel/include/chinline.h
+++ b/os/kernel/include/chinline.h
@@ -36,13 +36,15 @@ static INLINE void prio_insert(Thread *tp, ThreadsQueue *tqp) {
do {
cp = cp->p_next;
} while ((cp != (Thread *)tqp) && (cp->p_prio >= tp->p_prio));
- tp->p_prev = (tp->p_next = cp)->p_prev;
+ tp->p_next = cp;
+ tp->p_prev = cp->p_prev;
tp->p_prev->p_next = cp->p_prev = tp;
}
static INLINE void queue_insert(Thread *tp, ThreadsQueue *tqp) {
- tp->p_prev = (tp->p_next = (Thread *)tqp)->p_prev;
+ tp->p_next = (Thread *)tqp;
+ tp->p_prev = tqp->p_prev;
tp->p_prev->p_next = tqp->p_prev = tp;
}