]> Git Repo - J-linux.git/commitdiff
irqdomain: Use return value of strreplace()
authorAndy Shevchenko <[email protected]>
Wed, 28 Jun 2023 15:02:51 +0000 (18:02 +0300)
committerThomas Gleixner <[email protected]>
Fri, 30 Jun 2023 09:13:44 +0000 (11:13 +0200)
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]
kernel/irq/irqdomain.c

index 5bd01624e4470d6a1954e079e7277bf7c31aa209..0bdef4fe925bf5dae05d81468e3d60de8649f267 100644 (file)
@@ -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;
        }
This page took 0.079737 seconds and 4 git commands to generate.