irqchip/irq-omap-intc: Do not statically initialize variables
authorLadislav Michl <[email protected]>
Mon, 16 Oct 2017 16:13:03 +0000 (18:13 +0200)
committerThomas Gleixner <[email protected]>
Mon, 16 Oct 2017 19:05:14 +0000 (21:05 +0200)
omap_nr_pending and omap_nr_irqs variables are initialized
right at the beginning of intc_of_init function, so there's
no need to statically initialize them.

Signed-off-by: Ladislav Michl <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Tony Lindgren <[email protected]>
Cc: [email protected]
Cc: Jason Cooper <[email protected]>
Link: https://lkml.kernel.org/r/20171016161303.veumgcd3xom5c54r@lenoch
drivers/irqchip/irq-omap-intc.c

index 05f7f06dd711a03560af650a1f9e6dde93bb08ca..d360a6eddd6d3696805af2225893092cb77e41ec 100644 (file)
@@ -66,8 +66,8 @@ static struct omap_intc_regs intc_context;
 
 static struct irq_domain *domain;
 static void __iomem *omap_irq_base;
-static int omap_nr_pending = 3;
-static int omap_nr_irqs = 96;
+static int omap_nr_pending;
+static int omap_nr_irqs;
 
 static void intc_writel(u32 reg, u32 val)
 {