Skip to content

Commit 004671e

Browse files
committed
x86/apic: Remove mpparse 'apicid' variable
From: Dave Hansen <[email protected]> Some truly ancient code had different ways of calculating the 'apicid' but it is long gone. Zap the unnecssary local variablee Signed-off-by: Dave Hansen <[email protected]>
1 parent 249ada2 commit 004671e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/x86/kernel/mpparse.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,18 @@ static int __init mpf_checksum(unsigned char *mp, int len)
4848

4949
static void __init MP_processor_info(struct mpc_cpu *m)
5050
{
51-
int apicid;
5251
char *bootup_cpu = "";
5352

5453
if (!(m->cpuflag & CPU_ENABLED)) {
5554
disabled_cpus++;
5655
return;
5756
}
5857

59-
apicid = m->apicid;
60-
6158
if (m->cpuflag & CPU_BOOTPROCESSOR)
6259
bootup_cpu = " (Bootup-CPU)";
6360

6461
pr_info("Processor #%d%s\n", m->apicid, bootup_cpu);
65-
generic_processor_info(apicid);
62+
generic_processor_info(m->apicid);
6663
}
6764

6865
#ifdef CONFIG_X86_IO_APIC

0 commit comments

Comments
 (0)