From: Andy Shevchenko Date: Wed, 28 Jun 2023 15:02:51 +0000 (+0300) Subject: irqdomain: Use return value of strreplace() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=67a4e1a3bf7c68ed3fbefc4213648165d912cabb;p=linux.git irqdomain: Use return value of strreplace() Since strreplace() returns the pointer to the string itself, use it directly. Signed-off-by: Andy Shevchenko Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20230628150251.17832-1-andriy.shevchenko@linux.intel.com --- diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 5bd01624e4470..0bdef4fe925bf 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; }