Skip to contentSkip to conversation

irqchip: irq-omap-intc: Do not statically initialize variables

PATCH New Ladislav Michl 2 participants 2 messages Oct 16, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip: irq-omap-intc: Do not statically initialize variables

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.

---
 drivers/irqchip/irq-omap-intc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/irq-omap-intc.c +2 -2
index 05f7f06dd711..d360a6eddd6d 100644
@@ -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)
 {
#1 lore raw

[tip:irq/core] irqchip/irq-omap-intc: Do not statically initialize variables

irqchip/irq-omap-intc: Do not statically initialize variables
Commit-ID:  77c858fa343bb09cc3fe1456fda5710c974845b9
Gitweb:     https://git.kernel.org/tip/77c858fa343bb09cc3fe1456fda5710c974845b9
Author:     Ladislav Michl <[email protected]>
AuthorDate: Mon, 16 Oct 2017 18:13:03 +0200
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Mon, 16 Oct 2017 21:05:14 +0200

irqchip/irq-omap-intc: Do not statically initialize variables

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.

---
 drivers/irqchip/irq-omap-intc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/irq-omap-intc.c +2 -2
index 05f7f06..d360a6e 100644
@@ -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)
 {