From: Radu Rendec <radu@rendec.net>
To: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
Helge Deller <deller@gmx.de>, Thomas Gleixner <tglx@kernel.org>
Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] Remove unnecessary NULL check of the kstat_irqs field
Date: Sun, 5 Jul 2026 17:09:49 -0400 [thread overview]
Message-ID: <20260705210951.2717741-1-radu@rendec.net> (raw)
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
next reply other threads:[~2026-07-05 21:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-05 21:09 Radu Rendec [this message]
2026-07-05 21:09 ` [PATCH 1/2] genirq: Remove unnecessary NULL check of the kstat_irqs field Radu Rendec
2026-07-05 21:09 ` [PATCH 2/2] parisc: " Radu Rendec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260705210951.2717741-1-radu@rendec.net \
--to=radu@rendec.net \
--cc=James.Bottomley@HansenPartnership.com \
--cc=deller@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox