From 0dff6e3fa95ea13f6ee6cb2d4277e83076d81bad Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 23 Oct 2007 22:17:45 +0000 Subject: fix a whole bunch of warnings. (trivial) Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2890 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/x86/mtrr/mtrr.c | 1 - src/cpu/x86/tsc/delay_tsc.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/cpu/x86') diff --git a/src/cpu/x86/mtrr/mtrr.c b/src/cpu/x86/mtrr/mtrr.c index ab28a23a02..1a9e9d4b54 100644 --- a/src/cpu/x86/mtrr/mtrr.c +++ b/src/cpu/x86/mtrr/mtrr.c @@ -349,7 +349,6 @@ void x86_setup_fixed_mtrrs(void) * mtrrs. If this doesn't work out we can get smart again * and clear out the mtrrs. */ - struct var_mtrr_state var_state; printk_debug("\n"); /* Initialized the fixed_mtrrs to uncached */ diff --git a/src/cpu/x86/tsc/delay_tsc.c b/src/cpu/x86/tsc/delay_tsc.c index eaf85d2c76..a791f7930e 100644 --- a/src/cpu/x86/tsc/delay_tsc.c +++ b/src/cpu/x86/tsc/delay_tsc.c @@ -102,8 +102,7 @@ bad_ctc: static unsigned long long calibrate_tsc(void) { unsigned long long start, end, delta; - unsigned long allones = (unsigned long) -1, result; - unsigned long count; + unsigned long result, count; start = rdtscll(); // no udivdi3, dammit. -- cgit v1.2.3