summaryrefslogtreecommitdiff
path: root/src/arch/i386
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-05-26 12:33:06 +0000
committerStefan Reinauer <stepan@openbios.org>2009-05-26 12:33:06 +0000
commit4b556a16d3e84b07766b76c2aee4586d08ef7c00 (patch)
treec1df3ce650bb6258d2b3a31f8a39b5fed01aa104 /src/arch/i386
parent3a5c27763f4483f42851c127547e6db0fc5b69bc (diff)
downloadcoreboot-4b556a16d3e84b07766b76c2aee4586d08ef7c00.tar.xz
remove some dead code from cpu.c (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4300 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386')
-rw-r--r--src/arch/i386/lib/cpu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/i386/lib/cpu.c b/src/arch/i386/lib/cpu.c
index f461bbe330..247ee88c0c 100644
--- a/src/arch/i386/lib/cpu.c
+++ b/src/arch/i386/lib/cpu.c
@@ -134,11 +134,9 @@ static const char *cpu_vendor_name(int vendor)
static void identify_cpu(struct device *cpu)
{
char vendor_name[16];
- int cpuid_level;
int i;
vendor_name[0] = '\0'; /* Unset */
- cpuid_level = -1; /* Maximum supported CPUID level, -1=no CPUID */
/* Find the id and vendor_name */
if (!have_cpuid_p()) {
@@ -158,6 +156,7 @@ static void identify_cpu(struct device *cpu)
}
}
if (have_cpuid_p()) {
+ int cpuid_level;
struct cpuid_result result;
result = cpuid(0x00000000);
cpuid_level = result.eax;