From 2a117310b5d5fa5e62e7fc8d6d844e5375a2bf65 Mon Sep 17 00:00:00 2001 From: "Peter H. Froehlich" Date: Sat, 3 Oct 2015 04:43:05 -0400 Subject: [PATCH] Removed useless variable. --- mp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mp.c b/mp.c index b7ac5c3..224b1bd 100644 --- a/mp.c +++ b/mp.c @@ -12,7 +12,6 @@ #include "proc.h" struct cpu cpus[NCPU]; -static struct cpu *bcpu; int ismp; int ncpu; uchar ioapicid; @@ -99,7 +98,6 @@ mpinit(void) struct mpproc *proc; struct mpioapic *ioapic; - bcpu = &cpus[0]; if((conf = mpconfig(&mp)) == 0) return; ismp = 1; @@ -112,8 +110,6 @@ mpinit(void) cprintf("mpinit: ncpu=%d apicid=%d\n", ncpu, proc->apicid); ismp = 0; } - if(proc->flags & MPBOOT) - bcpu = &cpus[ncpu]; cpus[ncpu].id = ncpu; ncpu++; p += sizeof(struct mpproc);