From: Jiang Liu Date: Wed, 7 Jan 2015 07:31:32 +0000 (+0800) Subject: x86/apic: Kill useless variable x2apic_enabled in function enable_IR_x2apic() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7f530a2771fe7ea6a068340c9e22f814edfcc3c4;p=linux-beck.git x86/apic: Kill useless variable x2apic_enabled in function enable_IR_x2apic() Local variable x2apic_enabled has been assigned to but never referred, so kill it. Signed-off-by: Jiang Liu Cc: Tony Luck Cc: iommu@lists.linux-foundation.org Cc: H. Peter Anvin Cc: Joerg Roedel Cc: Benjamin Herrenschmidt Cc: Yinghai Lu Cc: Borislav Petkov Cc: David Rientjes Cc: HATAYAMA Daisuke Cc: Jan Beulich Cc: Richard Weinberger Cc: Oren Twaig Link: http://lkml.kernel.org/r/1420615903-28253-6-git-send-email-jiang.liu@linux.intel.com Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 544673304de0..2dbd3a0ae9f1 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -1595,7 +1595,7 @@ int __init enable_IR(void) void __init enable_IR_x2apic(void) { unsigned long flags; - int ret, x2apic_enabled = 0; + int ret; int hardware_init_ret; if (!IS_ENABLED(CONFIG_X86_X2APIC)) { @@ -1653,8 +1653,6 @@ void __init enable_IR_x2apic(void) goto skip_x2apic; } - x2apic_enabled = 1; - if (x2apic_supported() && !x2apic_mode) { x2apic_mode = 1; enable_x2apic();