From f533e173fccb40aac5c3e7f4f2277f3cdec5d029 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Mon, 16 Dec 2013 23:55:19 +0100 Subject: kern: avoid the casts in enqueue_head() and enqueue_tail() * kern/eventcount.c (simpler_thread_setrun) (enqueue_head) (th): Avoid the cast. * kern/thread.c (thread_halt_self) (enqueue_tail) (thread): Likewise. * kern/thread_swap.c (thread_swapin) (enqueue_tail) (thread): Likewise. --- kern/eventcount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern/eventcount.c') diff --git a/kern/eventcount.c b/kern/eventcount.c index 22c4932..a9d7bd4 100644 --- a/kern/eventcount.c +++ b/kern/eventcount.c @@ -340,7 +340,7 @@ simpler_thread_setrun( whichq = (th)->sched_pri; simple_lock(&(rq)->lock); /* lock the run queue */ - enqueue_head(&(rq)->runq[whichq], (queue_entry_t) (th)); + enqueue_head(&(rq)->runq[whichq], &((th)->links)); if (whichq < (rq)->low || (rq)->count == 0) (rq)->low = whichq; /* minimize */ -- cgit v1.2.3