summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-07-09 10:16:04 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2023-07-09 10:16:04 -0700
commita9943ad3dddb04763e73649ade8ed726a17b5ec3 (patch)
tree25340a7f6a68010b6548d9d0a4f1a1f9747faa34
parent51e3d7c27446c3af97e8a467ecc99bc2936d885c (diff)
parent67a4e1a3bf7c68ed3fbefc4213648165d912cabb (diff)
downloadlwn-a9943ad3dddb04763e73649ade8ed726a17b5ec3.tar.gz
lwn-a9943ad3dddb04763e73649ade8ed726a17b5ec3.zip
Merge tag 'irq_urgent_for_v6.5_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq update from Borislav Petkov: - Optimize IRQ domain's name assignment * tag 'irq_urgent_for_v6.5_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: irqdomain: Use return value of strreplace()
-rw-r--r--kernel/irq/irqdomain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index 5bd01624e447..0bdef4fe925b 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -182,9 +182,7 @@ static struct irq_domain *__irq_domain_create(struct fwnode_handle *fwnode,
return NULL;
}
- strreplace(name, '/', ':');
-
- domain->name = name;
+ domain->name = strreplace(name, '/', ':');
domain->fwnode = fwnode;
domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED;
}