[PATCH 0/2] Remove unnecessary NULL check of the kstat_irqs field
Radu Rendec <[email protected]>
| Newsgroups | org.kernel.vger.linux-parisc,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
The kstat_irqs field of struct irq_desc is used to store a per-cpu count of interrupt events. It is initialized in init_desc(), along with all the other fields in struct irq_desc that need explicit initialization, and therefore it's always available (non-NULL) for any valid interrupt descriptor. This series removes the unnecessary NULL check of the kstat_irqs field. The first patch addresses the generic IRQ code, and the second patch addresses one isolated occurrence in the parisc code. The first patch also includes a more detailed description of why removing the NULL check is safe. Radu Rendec (2): genirq: Remove unnecessary NULL check of the kstat_irqs field parisc: Remove unnecessary NULL check of the kstat_irqs field arch/parisc/kernel/smp.c | 2 +- include/linux/irqdesc.h | 2 +- kernel/irq/irqdesc.c | 11 ++++------- 3 files changed, 6 insertions(+), 9 deletions(-) -- 2.54.0