Skip to content

Commit

Permalink
irqdomain: Use return value of strreplace()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Andy Shevchenko authored and Thomas Gleixner committed Jun 30, 2023
1 parent 0017387 commit 67a4e1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/irq/irqdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 67a4e1a

Please sign in to comment.