Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1502037 > unrolled thread

[PATCH -next] irqchip/eznps: drop pointless static qualifier in nps400_of_init()

Started byWei Yongjun <weiyj.lk@gmail.com>
First post2016-10-17 16:30 +0200
Last post2016-10-17 16:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH -next] irqchip/eznps: drop pointless static qualifier in nps400_of_init() Wei Yongjun <weiyj.lk@gmail.com> - 2016-10-17 16:30 +0200

#1502037 — [PATCH -next] irqchip/eznps: drop pointless static qualifier in nps400_of_init()

FromWei Yongjun <weiyj.lk@gmail.com>
Date2016-10-17 16:30 +0200
Subject[PATCH -next] irqchip/eznps: drop pointless static qualifier in nps400_of_init()
Message-ID<sth5o-4CT-33@gated-at.bofh.it>
From: Wei Yongjun <weiyongjun1@huawei.com>

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 <weiyongjun1@huawei.com>
---
 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");

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web