Skip to content

Remove unnecessary NULL check of the kstat_irqs field

Radu Rendec linux-parisc lkml 1 version Applied

Status from this message: The following commit has been merged into the irq/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2genirq: Remove unnecessary NULL check of the kstat_irqs fieldinclude/linux/irqdesc.h kernel/irq/irqdesc.c+5 -80 replies
2/2parisc: Remove unnecessary NULL check of the kstat_irqs fieldarch/parisc/kernel/smp.c+1 -11 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchHelge Deller
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Remove unnecessary NULL check of the kstat_irqs field

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(-)
Signature · 1 line
2.54.0