Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752492AbdDJIFI (ORCPT ); Mon, 10 Apr 2017 04:05:08 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:33209 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750957AbdDJIFH (ORCPT ); Mon, 10 Apr 2017 04:05:07 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="17551264" From: Dou Liyang To: , CC: , , , Dou Liyang Subject: [PATCH 3/3] x86/irq: Remove a redundant #ifdef directive Date: Mon, 10 Apr 2017 16:05:00 +0800 Message-ID: <1491811500-30307-1-git-send-email-douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1491734806-15413-1-git-send-email-douly.fnst@cn.fujitsu.com> References: <1491734806-15413-1-git-send-email-douly.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: B32B2467021F.ADE72 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 676 Lines: 28 The declaration of irq_ctx_init in irq.h has already considered with both X86_32=y and X86_32=n cases. Put '#ifdef CONFIG_X86_32' here is redundant. Remove it for cleanup. Signed-off-by: Dou Liyang --- arch/x86/kernel/irqinit.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/kernel/irqinit.c b/arch/x86/kernel/irqinit.c index 1423ab1..7468c69 100644 --- a/arch/x86/kernel/irqinit.c +++ b/arch/x86/kernel/irqinit.c @@ -195,7 +195,5 @@ void __init native_init_IRQ(void) if (!acpi_ioapic && !of_ioapic && nr_legacy_irqs()) setup_irq(2, &irq2); -#ifdef CONFIG_X86_32 irq_ctx_init(smp_processor_id()); -#endif } -- 2.5.5