Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932845AbcJQO1O (ORCPT ); Mon, 17 Oct 2016 10:27:14 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36045 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932659AbcJQO1G (ORCPT ); Mon, 17 Oct 2016 10:27:06 -0400 From: Wei Yongjun To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Vineet Gupta Cc: Wei Yongjun , linux-kernel@vger.kernel.org Subject: [PATCH -next] irqchip/eznps: drop pointless static qualifier in nps400_of_init() Date: Mon, 17 Oct 2016 14:26:57 +0000 Message-Id: <1476714417-12095-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 830 Lines: 23 From: Wei Yongjun There is no need to have the 'struct irq_domain *nps400_root_domain' variable static since new value always be assigned before use it. Signed-off-by: Wei Yongjun --- drivers/irqchip/irq-eznps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-eznps.c b/drivers/irqchip/irq-eznps.c index ebc2b0b..2a7a388 100644 --- a/drivers/irqchip/irq-eznps.c +++ b/drivers/irqchip/irq-eznps.c @@ -135,7 +135,7 @@ static const struct irq_domain_ops nps400_irq_ops = { static int __init nps400_of_init(struct device_node *node, struct device_node *parent) { - static struct irq_domain *nps400_root_domain; + struct irq_domain *nps400_root_domain; if (parent) { pr_err("DeviceTree incore ic not a root irq controller\n");