Skip to content

Commit 67a4e1a

Browse files
andy-shevKAGA-KOKO
authored andcommitted
irqdomain: Use return value of strreplace()
Since strreplace() returns the pointer to the string itself, use it directly. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0017387 commit 67a4e1a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kernel/irq/irqdomain.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,7 @@ static struct irq_domain *__irq_domain_create(struct fwnode_handle *fwnode,
182182
return NULL;
183183
}
184184

185-
strreplace(name, '/', ':');
186-
187-
domain->name = name;
185+
domain->name = strreplace(name, '/', ':');
188186
domain->fwnode = fwnode;
189187
domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED;
190188
}

0 commit comments

Comments
 (0)