From 2b227acb3a573d41becca26f84168adf9becd77d Mon Sep 17 00:00:00 2001 From: William Lee Irwin III <wli@holomorphy.com> Date: Sun, 2 Jun 2002 22:33:58 -0700 Subject: [PATCH] [PATCH] duplicate decl in sched_init() I found this one while trying to straighten out bootstrap ordering issues elsewhere. There appears to be a duplicate declaration of rq in sched_init(). This removes the nested declaration and otherwise leaves things alone. --- kernel/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched.c b/kernel/sched.c index 0512527e20d9..b3a7de657072 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -1592,9 +1592,9 @@ void __init sched_init(void) int i, j, k; for (i = 0; i < NR_CPUS; i++) { - runqueue_t *rq = cpu_rq(i); prio_array_t *array; + rq = cpu_rq(i); rq->active = rq->arrays; rq->expired = rq->arrays + 1; spin_lock_init(&rq->lock); -- 2.30.9