From b1299c7aab328e92f32fd5b25408286260876b77 Mon Sep 17 00:00:00 2001 From: Richard Spiegel Date: Tue, 7 Aug 2018 14:35:54 -0700 Subject: [PATCH] arch/x86/exception.c: Remove double initialization In procedure exception_init(), structure pointer gates is initialized twice. Remove one initialization. BUG=b:112253891 TEST=Build and boot grunt. Change-Id: If0280963e8b796f795e77a11569277dcf16b4507 Signed-off-by: Richard Spiegel Reviewed-on: https://review.coreboot.org/27948 Reviewed-by: Martin Roth Reviewed-by: Marshall Dawson Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/arch/x86/exception.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86/exception.c b/src/arch/x86/exception.c index f668ffcadb..201e835e16 100644 --- a/src/arch/x86/exception.c +++ b/src/arch/x86/exception.c @@ -622,7 +622,7 @@ asmlinkage void exception_init(void) { int i; uint16_t segment; - struct intr_gate *gates = car_get_var_ptr(idt); + struct intr_gate *gates; segment = get_cs(); gates = car_get_var_ptr(idt);