summaryrefslogtreecommitdiffstats
path: root/kernel/irq
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-06-28 17:02:51 +0200
committerThomas Gleixner <tglx@linutronix.de>2023-06-30 11:13:44 +0200
commit67a4e1a3bf7c68ed3fbefc4213648165d912cabb (patch)
treea346b7dfae1f45dcec069e44740119b29ebfa750 /kernel/irq
parentMerge tag 'irq-core-2023-06-26' of ssh://gitolite.kernel.org/pub/scm/linux/ke... (diff)
downloadlinux-67a4e1a3bf7c68ed3fbefc4213648165d912cabb.tar.xz
linux-67a4e1a3bf7c68ed3fbefc4213648165d912cabb.zip
irqdomain: Use return value of strreplace()
Since strreplace() returns the pointer to the string itself, use it directly. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20230628150251.17832-1-andriy.shevchenko@linux.intel.com
Diffstat (limited to 'kernel/irq')
-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;
}