Commit 67a4e1a3 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Thomas Gleixner

irqdomain: Use return value of strreplace()

Since strreplace() returns the pointer to the string itself, use it
directly.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230628150251.17832-1-andriy.shevchenko@linux.intel.com
parent 00173879
...@@ -182,9 +182,7 @@ static struct irq_domain *__irq_domain_create(struct fwnode_handle *fwnode, ...@@ -182,9 +182,7 @@ static struct irq_domain *__irq_domain_create(struct fwnode_handle *fwnode,
return NULL; return NULL;
} }
strreplace(name, '/', ':'); domain->name = strreplace(name, '/', ':');
domain->name = name;
domain->fwnode = fwnode; domain->fwnode = fwnode;
domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment