Skip to contentSkip to conversation

irqchip/eznps: drop pointless static qualifier in nps400_of_init()

PATCH New Wei Yongjun 1 participant 1 message Oct 17, 2016 irqchip drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/eznps: drop pointless static qualifier in nps400_of_init()

From: Wei Yongjun <[email protected]>

There is no need to have the 'struct irq_domain *nps400_root_domain' variable static since new value always be assigned before use it.

---
 drivers/irqchip/irq-eznps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-eznps.c +1 -1
index ebc2b0b..2a7a388 100644
@@ -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");