aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq
diff options
context:
space:
mode:
authorParan Lee <p4ranlee@gmail.com>2022-07-10 20:26:14 +0900
committerMarc Zyngier <maz@kernel.org>2022-07-20 15:21:32 +0100
commitc904cda04482d5ab545e5a82cee6084078ef9543 (patch)
treedf7f560f266f7d07b53555d4f251f2bd87b55526 /kernel/irq
parentirqdomain: Use hwirq_max instead of revmap_size for NOMAP domains (diff)
downloadlinux-dev-c904cda04482d5ab545e5a82cee6084078ef9543.tar.xz
linux-dev-c904cda04482d5ab545e5a82cee6084078ef9543.zip
genirq: Use for_each_action_of_desc in actions_show()
Refactor action_show() to use for_each_action_of_desc instead of a similar open-coded loop. Signed-off-by: Paran Lee <p4ranlee@gmail.com> [maz: reword commit message] Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220710112614.19410-1-p4ranlee@gmail.com
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/irqdesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index d323b180b0f3..5db0230aa6b5 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -251,7 +251,7 @@ static ssize_t actions_show(struct kobject *kobj,
char *p = "";
raw_spin_lock_irq(&desc->lock);
- for (action = desc->action; action != NULL; action = action->next) {
+ for_each_action_of_desc(desc, action) {
ret += scnprintf(buf + ret, PAGE_SIZE - ret, "%s%s",
p, action->name);
p = ",";